Skip to content

Commit 4e53857

Browse files
committed
fix imunify after upgrade
1 parent 00e23f4 commit 4e53857

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plogical/upgrade.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1373,14 +1373,6 @@ def downloadAndUpgrade(versionNumbring, branch):
13731373

13741374
Upgrade.stdOut('Settings file restored!')
13751375

1376-
## Move static files
1377-
1378-
imunifyPath = '/usr/local/CyberCP/public/imunify'
1379-
1380-
if os.path.exists(imunifyPath):
1381-
command = "yum reinstall imunify360-firewall-generic -y"
1382-
Upgrade.executioner(command, command, 1)
1383-
13841376
Upgrade.staticContent()
13851377

13861378
except:
@@ -2113,6 +2105,14 @@ def upgrade(branch):
21132105
Upgrade.installCLScripts()
21142106
Upgrade.runSomeImportantBash()
21152107

2108+
## Move static files
2109+
2110+
imunifyPath = '/usr/local/CyberCP/public/imunify'
2111+
2112+
if os.path.exists(imunifyPath):
2113+
command = "yum reinstall imunify360-firewall-generic -y"
2114+
Upgrade.executioner(command, command, 1)
2115+
21162116
Upgrade.stdOut("Upgrade Completed.")
21172117

21182118

0 commit comments

Comments
 (0)