Skip to content
Snippets Groups Projects
Commit d78f9800 authored by Lais Frigerio's avatar Lais Frigerio
Browse files

Issue #46: Replace the deluser comand to userdel to cover openSuse test from CI

parent 42a6abb7
No related branches found
No related tags found
2 merge requests!51Merge development to master,!35Issue #46: Replace the deluser command to userdel to cover openSuse test from CI
Pipeline #
...@@ -19,7 +19,13 @@ do ...@@ -19,7 +19,13 @@ do
faketime -f "${ft_date}" ./login.exp $ft_user &>/dev/null faketime -f "${ft_date}" ./login.exp $ft_user &>/dev/null
deluser --remove-home $ft_user >/dev/null if grep -q "openSUSE" /etc/os-release
then
userdel -r $ft_user >/dev/null
else
deluser --remove-home $ft_user >/dev/null
fi
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
echo "Failed to delete $ft_user!" echo "Failed to delete $ft_user!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment