diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index ceb1ad906157ecb9d35a8bd8938c6d6bffddc92b..87f0c930064ae8ef3df311ecfb447bc183edf756 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -521,12 +521,7 @@ function web_admin_setup_login { webadmin_password="$(create_password "${MINIMUM_PASSWORD_LENGTH}")" # create a password for users - if [ ! -f /etc/nginx/.webadminpasswd ]; then - touch /etc/nginx/.webadminpasswd - fi - if grep -q "admin:" /etc/nginx/.webadminpasswd; then - sed -i "/admin:/d" /etc/nginx/.webadminpasswd - fi + touch /etc/nginx/.webadminpasswd # create a password file used by nginx echo -n "$webadmin_password" | htpasswd -i -s -c /etc/nginx/.webadminpasswd "admin"