This commit is contained in:
olli 2024-09-01 14:25:38 +02:00
parent b0dfda6c9b
commit cc413f69a1

View File

@ -36,11 +36,11 @@
else
webpassword=$(pwgen -s 32 1)
webuser=bot
webpasswordcrypted=$(htpasswd -nb ${webuser} ${webpassword})
webpasswordcrypted=$(htpasswd -nb ${webuser} ${webpassword} | sed -e 's/\\$/\\$\\$/g')
echo "WEBUSER=${webuser}
WEBPASSWD=${webpassword}
WEBPASSWDCRYPT=${webpasswordcrypted}
WEBPASSWD='${webpassword}'
WEBPASSWDCRYPT='${webpasswordcrypted}'
" >env
chmod 440 env