mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
bug fix: install
This commit is contained in:
@@ -1796,7 +1796,7 @@ imap_folder_list_limit = 0
|
|||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
if self.distro == ubuntu:
|
if self.distro == ubuntu:
|
||||||
command = 'apt install opendkim-tools'
|
command = 'apt install opendkim-tools -y'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
command = 'mkdir -p /etc/opendkim/keys/'
|
command = 'mkdir -p /etc/opendkim/keys/'
|
||||||
|
|||||||
@@ -455,7 +455,7 @@ class InstallCyberPanel:
|
|||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open('/etc/resolv.conf', 'w')
|
f = open('/etc/resolv.conf', 'a')
|
||||||
f.write('nameserver 8.8.8.8')
|
f.write('nameserver 8.8.8.8')
|
||||||
f.close()
|
f.close()
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ from websiteFunctions.models import Websites, Backups
|
|||||||
from plogical.processUtilities import ProcessUtilities
|
from plogical.processUtilities import ProcessUtilities
|
||||||
from random import randint
|
from random import randint
|
||||||
import json, requests
|
import json, requests
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
class backupSchedule:
|
class backupSchedule:
|
||||||
|
|
||||||
@@ -34,6 +35,8 @@ class backupSchedule:
|
|||||||
def createLocalBackup(virtualHost, backupLogPath):
|
def createLocalBackup(virtualHost, backupLogPath):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
startingTime = datetime.now()
|
||||||
|
|
||||||
backupSchedule.remoteBackupLogging(backupLogPath, "Starting local backup for: " + virtualHost)
|
backupSchedule.remoteBackupLogging(backupLogPath, "Starting local backup for: " + virtualHost)
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|||||||
Reference in New Issue
Block a user