mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: wp staging
This commit is contained in:
@@ -251,7 +251,7 @@ define('WP_SITEURL','http://%s');
|
||||
data = open(configPath, 'r').readlines()
|
||||
|
||||
for items in data:
|
||||
if items.find('DB_NAME') > -1:
|
||||
if items.find('DB_NAME') > -1 and items[0] != '/':
|
||||
dbNameRestore = items.split("'")[3]
|
||||
if not mysqlUtilities.restoreDatabaseBackup(dbNameRestore, '/home/cyberpanel', None, 1, dbName):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user