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

Check for directory

parent be5afc38
No related branches found
No related tags found
No related merge requests found
......@@ -467,7 +467,10 @@ function web_admin_reset {
if [ -f /etc/nginx/.webadminpasswd ]; then
rm /etc/nginx/.webadminpasswd
fi
touch "$webadmin_install_dir/.setupscreenactive"
if [ -d "$webadmin_install_dir" ]; then
touch "$webadmin_install_dir/.setupscreenactive"
fi
install_web_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