diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 62ba185..d16b0ef 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -4,7 +4,7 @@ set -ex if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 - sudo $0 + sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 exit 0 fi echo "Als root Angemeldet" @@ -155,6 +155,7 @@ function copyconfig() { #links links userrechte + rootrechte } function userrechte() { @@ -172,6 +173,9 @@ function userrechte() { chmod 600 /home/"$username"/.ssh/authorized_keys fi +} + +function rootrechte() { #root chmod 750 -Rv /root #ssh-root diff --git a/update.sh b/update.sh index 8b23c22..6c2f37e 100755 --- a/update.sh +++ b/update.sh @@ -12,7 +12,7 @@ user="user1" if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 - sudo $0 + sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 exit 0 fi echo "Als root Angemeldet"