Do NOT Store EHCP Files By Default in Backups Since this Can Cause Problems on Restore (changed credentials)
This commit is contained in:
parent
9f308e5972
commit
d38a4164e2
2 changed files with 8 additions and 1 deletions
|
@ -3158,6 +3158,7 @@ function doRestore(){
|
|||
|
||||
|
||||
function daemonRestore($action,$info,$info2='') {
|
||||
$this->requireCommandLine(__FUNCTION__,True);
|
||||
|
||||
$filename=securefilename($info);
|
||||
$backupname=$filename;
|
||||
|
@ -3226,6 +3227,10 @@ function daemonRestore($action,$info,$info2='') {
|
|||
echo "\n\nRestore complete.... you should restart the ehcp daemon...";
|
||||
$this->infotoadminemail("The EHCP backup was successfully restored!","Backup Restored",False);
|
||||
|
||||
// Restart web server and EHCP daemon
|
||||
$this->restart_webserver();
|
||||
manageService("ehcp", "restart");
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
@ -11635,6 +11640,8 @@ function restart_webserver(){
|
|||
manageService("apache2", "stop");
|
||||
manageService("nginx", "restart");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function is_webserver_running(){
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
if(isset($filename)){
|
||||
|
||||
$backup='-mysql-files-ehcpfiles-ehcpdb-emailaccounts-emailcontents-gzipbackup'; # what will be backed up
|
||||
$backup='-mysql-files-ehcpdb-emailaccounts-emailcontents-gzipbackup'; # what will be backed up
|
||||
|
||||
// Code from classapp.php in EHCP
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue