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 else
webpassword=$(pwgen -s 32 1) webpassword=$(pwgen -s 32 1)
webuser=bot webuser=bot
webpasswordcrypted=$(htpasswd -nb ${webuser} ${webpassword}) webpasswordcrypted=$(htpasswd -nb ${webuser} ${webpassword} | sed -e 's/\\$/\\$\\$/g')
echo "WEBUSER=${webuser} echo "WEBUSER=${webuser}
WEBPASSWD=${webpassword} WEBPASSWD='${webpassword}'
WEBPASSWDCRYPT=${webpasswordcrypted} WEBPASSWDCRYPT='${webpasswordcrypted}'
" >env " >env
chmod 440 env chmod 440 env