Changing the webadmin password does not work
jinxmcg opened this issue · comments
jinxmcg commented
Hi,
Using webadmin.sh does not change the password
./bin/webadmin.sh newpassword
cat /usr/local/lsws/admin/conf/htpasswd
admin:
Parse error: syntax error, unexpected '{' in /usr/local/lsws/admin/fcgi-bin/admin_php.bak on line 2030
The fix is to remove the * from the line 64 in webadmin.sh as it picksup a bak file
'echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php '${1}')" > /usr/local/lsws/admin/conf/htpasswd';
E.L. commented
Hi,
Thanks for the report. Although I'm not sure why there has a bak file there, still push a fix for it. 412e1e9
jinxmcg commented
I think I did issue an update before trying to change password
bin/webadmin.sh [-U, --upgrade]
E.L. commented
ok, just tested and it works, will close it.