bug fix: remove csf apps during upgrade

This commit is contained in:
Usman Nasir
2019-11-13 19:23:14 +05:00
parent d28c766b33
commit bfb4355451
2 changed files with 7 additions and 0 deletions

View File

@@ -2177,6 +2177,10 @@ milter_default_action = accept
except:
pass
def installAcme(self):
command = 'wget -O - https://get.acme.sh | sh'
subprocess.call(command, shell=True)
def main():
parser = argparse.ArgumentParser(description='CyberPanel Installer')
@@ -2292,6 +2296,7 @@ def main():
checks.setupCLI()
checks.setup_cron()
checks.installRestic()
checks.installAcme()
# checks.installdnsPython()
## Install and Configure OpenDKIM.

View File

@@ -1444,6 +1444,8 @@ CSRF_COOKIE_SECURE = True
MEDIA_URL = 1
for items in data:
if items.find('csf') > -1:
continue
if items.find('MEDIA_URL') > -1:
MEDIA_URL = 0