docker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
laci
2024-07-02 12:37:09 +02:00
parent 378cc23b01
commit dfcbfb8451
3 changed files with 19 additions and 10 deletions

View File

@@ -647,15 +647,17 @@ else
ACTION="install";
fi;
if [ "$USER" != "root" ] ; then
echo "You are not logged in as root."
echo "Do you want to continue and run $ACTION script as "$USER" user using sudo? (Y/n)";
read -r ANSWER;
if [ "$ANSWER" == "n" ] || [ "$ANSWER" == "N" ]; then
echo "Bye."
exit;
else
SUDO_CMD="sudo ";
if [ "$WEBINSTALL" == "" ]; then
if [ "$USER" != "root" ] ; then
echo "You are not logged in as root."
echo "Do you want to continue and run $ACTION script as "$USER" user using sudo? (Y/n)";
read -r ANSWER;
if [ "$ANSWER" == "n" ] || [ "$ANSWER" == "N" ]; then
echo "Bye."
exit;
else
SUDO_CMD="sudo ";
fi;
fi;
fi;