remove need for sudo on cosmic admin scripts

This commit is contained in:
James Tomasino 2018-11-29 10:25:38 -05:00
parent 0fea90b69f
commit 1810b7fd2d
3 changed files with 3 additions and 3 deletions

View File

@ -37,5 +37,5 @@ if [ "$run_user" -eq 0 ]; then
printf "Specify a user.\\n"
fi
else
printf "You must be root to run this script.\\n"
exec sudo "$0" "$@"
fi

View File

@ -23,5 +23,5 @@ if [ "$run_user" -eq 0 ]; then
printf "Specify a user.\\n"
fi
else
printf "You must be root to run this script.\\n"
exec sudo "$0" "$@"
fi

View File

@ -134,5 +134,5 @@ if [ "$run_user" -eq 0 ]; then
# copy favicon
cp "${SCRIPTPATH}/../files/favicon.ico" "${html_dir}"
else
printf "You must be root to run this script.\\n"
exec sudo "$0" "$@"
fi