mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 22:36:12 +01:00
bug fix: remove index.html before installing apps
This commit is contained in:
@@ -671,7 +671,6 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'
|
vhFile = f'/usr/local/lsws/conf/vhosts/{domainName}/vhost.conf'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
phpPath = phpUtilities.GetPHPVersionFromFile(vhFile)
|
phpPath = phpUtilities.GetPHPVersionFromFile(vhFile)
|
||||||
except:
|
except:
|
||||||
phpPath = '/usr/local/lsws/lsphp80/bin/php'
|
phpPath = '/usr/local/lsws/lsphp80/bin/php'
|
||||||
@@ -742,6 +741,9 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
|
dbName, dbUser, dbPassword = self.dbCreation(tempStatusPath, website)
|
||||||
self.permPath = '/home/%s/public_html' % (website.domain)
|
self.permPath = '/home/%s/public_html' % (website.domain)
|
||||||
|
|
||||||
|
command = "rm -rf " + finalPath + "index.html"
|
||||||
|
ProcessUtilities.executioner(command, externalApp)
|
||||||
|
|
||||||
#php = PHPManager.getPHPString(website.phpSelection)
|
#php = PHPManager.getPHPString(website.phpSelection)
|
||||||
FinalPHPPath = phpPath
|
FinalPHPPath = phpPath
|
||||||
|
|
||||||
@@ -1059,6 +1061,11 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
if self.dataLossCheck(finalPath, tempStatusPath, externalApp) == 0:
|
if self.dataLossCheck(finalPath, tempStatusPath, externalApp) == 0:
|
||||||
raise BaseException('Directory is not empty.')
|
raise BaseException('Directory is not empty.')
|
||||||
|
|
||||||
|
### remove index.html
|
||||||
|
|
||||||
|
command = "rm -rf " + finalPath + "index.html"
|
||||||
|
ProcessUtilities.executioner(command, externalApp)
|
||||||
|
|
||||||
### lets first find php path
|
### lets first find php path
|
||||||
|
|
||||||
from plogical.phpUtilities import phpUtilities
|
from plogical.phpUtilities import phpUtilities
|
||||||
|
|||||||
Reference in New Issue
Block a user