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

Populate password for backups after it is initially entered

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