Skip to content
Snippets Groups Projects
Commit 31b351d3 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove unused logic

parent ffafa788
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment