From 21889ec0a08f2395efa3941f77ef62936d8e0425 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Tue, 16 May 2023 15:32:46 +0500 Subject: [PATCH] remove index file on wp install --- plogical/applicationInstaller.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 03f5d002a..c1d1cb530 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -565,6 +565,13 @@ $parameters = array( else: finalPath = "/home/" + domainName + "/public_html/" + ### check if index file then delete + + IndexFile = f'{finalPath}index.html' + + command = f'rm -f {IndexFile}' + ProcessUtilities.executioner(command, externalApp) + if website.package.dataBases > website.databases_set.all().count(): pass else: