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

Skip domain screen if in onion only mode

parent 080ecf94
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,7 @@ function web_admin_onion_only {
sed -i '/freedns_code/d' "$webadmin_install_dir/app_add_template.html"
sed -i '/install_domain/d' "$webadmin_install_dir/app_add_template.html"
sed -i 's|onion_only=false;|onion_only=true;|g' "$webadmin_install_dir/installapp.php"
sed -i 's|setup_domain.html|setup_installing.html|g' "$webadmin_install_dir/setupconfirm.php"
}
function web_admin_reset {
......
......@@ -8,8 +8,14 @@ if (isset($_POST['setupconfirmsubmit'])) {
if($confirm == "1") {
if(file_exists("setup.txt")) {
// This gets changed by web_admin_onion_only
$output_filename = "setup_domain.html";
}
if($output_filename == "setup_installing.html") {
if(file_exists(".temp_setup.txt")) {
exec('mv .temp_setup.txt setup.txt');
}
}
}
}
}
......
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