X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=ssh-utils%2Fssh-adduser.sh;h=e14efb8aacfd46209b07c04e62cc90f03dd2eb1a;hb=46445e9382905a52e770d44191235be179616049;hp=e3ee4ff4edf73b55f2794ea7b0097219d070a5bd;hpb=76776e9d5403d59b2cd5cba16d84f819a56bc5aa;p=webi-installers%2F.git diff --git a/ssh-utils/ssh-adduser.sh b/ssh-utils/ssh-adduser.sh index e3ee4ff..e14efb8 100644 --- a/ssh-utils/ssh-adduser.sh +++ b/ssh-utils/ssh-adduser.sh @@ -8,8 +8,8 @@ # TODO would $EUID be better? if [ "root" != "$(whoami)" ]; then - echo "webi adduser: running user is already a non-root user" - exit 0 + echo "webi adduser: running user is already a non-root user" + exit 0 fi #apt-get -y update @@ -41,8 +41,8 @@ # Install webi for the new 'app' user WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"} - sudo -i -u "$my_name" bash -c "curl -fsSL '$WEBI_HOST/webi' | bash" \ - || sudo -i -u "$my_name" bash -c "wget -q -O - '$WEBI_HOST/webi' | bash" + sudo -i -u "$my_name" bash -c "curl -fsSL '$WEBI_HOST/webi' | bash" || + sudo -i -u "$my_name" bash -c "wget -q -O - '$WEBI_HOST/webi' | bash" # TODO ensure that ssh-password login is off