X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=ssh-utils%2Fssh-adduser.sh;fp=ssh-utils%2Fssh-adduser.sh;h=27c6dc89147fb66c3e3317e5bbb3fbf85985274f;hb=6cb859eeffe708cf75bec7333a8a23be00b7a9e9;hp=47aefae2eeb348aa449d343488d39665d3f39e19;hpb=ea77982c0a6510744d164b73cebed43e42f77fac;p=webi-installers%2F.git diff --git a/ssh-utils/ssh-adduser.sh b/ssh-utils/ssh-adduser.sh index 47aefae..27c6dc8 100644 --- a/ssh-utils/ssh-adduser.sh +++ b/ssh-utils/ssh-adduser.sh @@ -39,8 +39,9 @@ sudo -i -u app bash -c 'ssh-keygen -b 2048 -t rsa -f /home/app/.ssh/id_rsa -q -N ""' # Install webi for the new 'app' user - sudo -i -u app bash -c 'curl -fsSL https://webinstall.dev/webi | bash' \ - || sudo -i -u app bash -c 'wget -q -O - https://webinstall.dev/webi | bash' + WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"} + sudo -i -u app bash -c "curl -fsSL '$WEBI_HOST/webi' | bash" \ + || sudo -i -u app bash -c "wget -q -O - '$WEBI_HOST/webi' | bash" # TODO ensure that ssh-password login is off