From 430733a9de3c95ec488f531a21eab382591e1463 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sun, 17 May 2020 13:16:30 +0500 Subject: [PATCH] bug fix: wp staging --- websiteFunctions/StagingSetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websiteFunctions/StagingSetup.py b/websiteFunctions/StagingSetup.py index 419bd1184..df6979ca6 100644 --- a/websiteFunctions/StagingSetup.py +++ b/websiteFunctions/StagingSetup.py @@ -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: