Skip to content

Commit

Permalink
bug fix: remove index.html before installing apps
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Oct 5, 2024
1 parent 8fe06d1 commit d6e883e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plogical/applicationInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@ def installWordPress(self):
vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'

try:

phpPath = phpUtilities.GetPHPVersionFromFile(vhFile)
except:
phpPath = '/usr/local/lsws/lsphp80/bin/php'
Expand Down Expand Up @@ -742,6 +741,9 @@ def installWordPress(self):
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
self.permPath = '/home/%s/public_html' % (website.domain)

command = "rm -rf " + finalPath + "index.html"
ProcessUtilities.executioner(command, externalApp)

#php = PHPManager.getPHPString(website.phpSelection)
FinalPHPPath = phpPath

Expand Down Expand Up @@ -1059,6 +1061,11 @@ def installPrestaShop(self):
if self.dataLossCheck(finalPath, tempStatusPath, externalApp) == 0:
raise BaseException('Directory is not empty.')

### remove index.html

command = "rm -rf " + finalPath + "index.html"
ProcessUtilities.executioner(command, externalApp)

### lets first find php path

from plogical.phpUtilities import phpUtilities
Expand Down

0 comments on commit d6e883e

Please sign in to comment.