This commit is contained in:
simono41 2018-04-07 19:07:06 +02:00
parent 2c6e4e4629
commit baf0638097
3 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@ set -ex
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
exit 0
fi
echo "Als root Angemeldet"

View file

@ -15,7 +15,7 @@ version="${2}"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 2>&1 | tee /home/user1/install.log
sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" 2>&1 | tee /home/user1/install.log
exit 0
fi
echo "Logged in as root"

View file

@ -4,7 +4,7 @@ set -ex
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
sudo $0 $1 $2 $3 $4 $5
sudo "$0" "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
exit 0
fi