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

Tidying

parent 17984719
No related branches found
No related tags found
No related merge requests found
......@@ -101,9 +101,26 @@ do
# switch on nginx authentication for freedombone.local
sed -i 's|#auth_basic|auth_basic|g' "/etc/nginx/sites-available/${local_hostname}"
# Show the web admin index page (not the initial setup page)
if [ -f "$webadmin_install_dir/index.prev" ]; then
# Replace the installing screen with the main index page when done
# It should reload by itself
if [ -f "$webadmin_install_dir/setup_installing.prev" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_installing.html"
fi
# Replace the setup confirm screen with the main index
if [ -f "$webadmin_install_dir/setup_confirm.html" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_confirm.html"
fi
# Replace the setup domain screen with the main index
if [ -f "$webadmin_install_dir/setup_domain.html" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_domain.html"
fi
# Show the web admin index page (not the initial setup page)
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/index.html"
rm "$webadmin_install_dir/index.prev"
fi
# Remove the initial setup page
......@@ -111,21 +128,6 @@ do
rm "$webadmin_install_dir/setup.prev"
fi
# Replace the installing screen with the main index page when done
# It should reload by itself
if [ -f "$webadmin_install_dir/setup_installing.prev" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_installing.html"
fi
# Replace the setup confirm screen with the main index
if [ -f "$webadmin_install_dir/setup_confirm.html" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_confirm.html"
fi
# Replace the setup domain screen with the main index
if [ -f "$webadmin_install_dir/setup_domain.html" ]; then
cp "$webadmin_install_dir/index.prev" "$webadmin_install_dir/setup_domain.html"
fi
# set permissions for web admin site at freedombone.local
chown www-data:www-data "$webadmin_install_dir/*.html"
......
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