fix
This commit is contained in:
parent
2c6e4e4629
commit
baf0638097
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ set -ex
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root" 1>&2
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "Als root Angemeldet"
|
echo "Als root Angemeldet"
|
||||||
|
|
|
@ -15,7 +15,7 @@ version="${2}"
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root" 1>&2
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "Logged in as root"
|
echo "Logged in as root"
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -ex
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root" 1>&2
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue