diff --git a/installer/installer.sh b/installer/installer.sh index a0dfe3d..510604b 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -13,7 +13,7 @@ function comm { # First complete the command, if necessary if [[ $3 == "chroot" ]];then command="chroot /mnt /bin/bash -c \"$4\"" - else if [[ $3 == "chuser" ]];then + elif [[ $3 == "chuser" ]];then command="chroot /mnt /bin/bash -c \"su $nameuser -c \"$4\" \" " fi