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

Create copy of index page after copying webadmin files

parent 2cb41b47
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ do
fi
# set permissions for web admin site at freedombone.local
chown www-data:www-data "$webadmin_install_dir/index.html"
chown www-data:www-data "$webadmin_install_dir/*.html"
# remove the setup file created by setup.php
rm "$setup_file"
......
......@@ -538,7 +538,6 @@ function web_admin_setup_login {
# create a setup page with the initial password inserted
# and copy it to the index
cp "$webadmin_install_dir"/index.html "$webadmin_install_dir"/index.prev
cp "$webadmin_install_dir"/setup.html "$webadmin_install_dir"/setup.prev
cp "$webadmin_install_dir"/setup_confirm_template.html "$webadmin_install_dir"/setup_confirm.html
sed -i "s|WEBADMINPASSWORD|${webadmin_password}|g" "$webadmin_install_dir/setup.prev"
......@@ -584,9 +583,13 @@ function install_web_admin {
cp -r "/usr/share/${PROJECT_NAME}/webadmin"/* "$webadmin_install_dir"
cp "/usr/share/${PROJECT_NAME}/webadmin/${language_subdir}"/*.html "$webadmin_install_dir"
if [ -f "$webadmin_install_dir/setup.prev" ]; then
# We are still waiting for initial setup to happen
cp "$webadmin_install_dir"/setup.prev "$webadmin_install_dir"/index.html
cp "$webadmin_install_dir"/index.html "$webadmin_install_dir"/index.prev
if [ -f "$webadmin_install_dir/.setupscreenactive" ]; then
if [ -f "$webadmin_install_dir/setup.prev" ]; then
# We are still waiting for initial setup to happen
cp "$webadmin_install_dir"/setup.prev "$webadmin_install_dir"/index.html
fi
fi
# if this is an onion only install then modify some php scripts
......
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