mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +01:00
db manager
This commit is contained in:
@@ -2869,6 +2869,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={newWPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
# ##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -2973,6 +2976,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={newWPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
# ##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -2991,7 +2997,6 @@ $parameters = array(
|
||||
FinalPHPPath = '/usr/local/lsws/lsphp%s/bin/php' % (php)
|
||||
|
||||
|
||||
|
||||
### Create secure folder
|
||||
|
||||
ACLManager.CreateSecureDir()
|
||||
@@ -3066,6 +3071,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={WPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
# ##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -3213,6 +3221,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={newWPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -3385,6 +3396,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={newWPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
# ##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -3542,6 +3556,9 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={WPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
# ##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -3757,6 +3774,10 @@ $parameters = array(
|
||||
if stdout.find('Error:') > -1:
|
||||
raise BaseException(stdout)
|
||||
|
||||
command = f'sudo -u {VHuser} /usr/local/lsws/lsphp74/bin/php -d error_reporting=0 /usr/bin/wp litespeed-purge all --path={newWPpath}'
|
||||
ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
|
||||
|
||||
##Remove temppath
|
||||
command = f'rm -rf {self.tempPath}'
|
||||
result, stdout = ProcessUtilities.outputExecutioner(command, None, None, None, 1)
|
||||
@@ -3770,6 +3791,7 @@ $parameters = array(
|
||||
installUtilities.reStartLiteSpeed()
|
||||
|
||||
|
||||
|
||||
logging.statusWriter(self.tempStatusPath, 'Completed.[200]')
|
||||
except BaseException as msg:
|
||||
logging.writeToFile("Error RestoreWPbackupNow ....... %s" % str(msg))
|
||||
|
||||
@@ -418,7 +418,7 @@
|
||||
<div class="tab-pane" id="tab5">
|
||||
<div class="panel-body">
|
||||
<h3 class="content-box-header">
|
||||
{% trans "Create Backup " %}
|
||||
{% trans "Create Backup " %} - <a href="{% url 'RestoreBackups' %}">{% trans "Restore Backups " %} <i class="glyph-icon icon-external-link-square" title="staging.cyberpanel.net"></i></a>
|
||||
</h3>
|
||||
<div class="example-box-wrapper">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user