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

Populate restore password

parent e99c82f8
No related branches found
No related tags found
No related merge requests found
......@@ -1115,6 +1115,7 @@ function backup_and_restore {
echo " sed -i \"s|\\\"backup_password\\\".*|\\\"backup_password\\\" value=\\\"\$backup_password\\\"></p>|g\" $webadmin_install_dir/backup_password.html";
echo " sed -i \"s|\\\"backup_password_confirm\\\".*|\\\"backup_password_confirm\\\" value=\\\"\$backup_password\\\"></p>|g\" $webadmin_install_dir/backup_password.html";
echo " chown www-data:www-data $webadmin_install_dir/backup_password.html";
echo " sed -i \"s|\\\"backup_password\\\".*|\\\"backup_password\\\" value=\\\"\$backup_password\\\"></p>|g\" $webadmin_install_dir/restore_password.html";
echo 'else';
echo ' if [ -f /root/simple_backup_password.txt ]; then';
echo " backup_password=\$(cat /root/simple_backup_password.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