This commit is contained in:
simono41 2018-04-07 18:43:54 +02:00
parent fac83bb85b
commit 6a34004941

View file

@ -7,12 +7,15 @@ echo "Version : DI 27. Feb 22:52:41 CET 2017"
WEBADDRESS="https://github.com/simono41/SpectreOS.git" WEBADDRESS="https://github.com/simono41/SpectreOS.git"
repo="SpectreOS" repo="SpectreOS"
user="user1" user="user1"
version="${2}"
[[ -n "${2}" ]] && version="${2}" || version=voll [[ -z "${version}" ]] && version="voll"
[[ -z "${username}" ]] && username="user1"
[[ -z "${userpass}" ]] && userpass="user1"
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 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"