mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-24 00:09:03 +01:00
bug fix: remove csf apps during upgrade
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user