bug fix: install

This commit is contained in:
Usman Nasir
2019-12-13 17:43:00 +05:00
parent 2fdf0a9915
commit 52e7f038f1
3 changed files with 5 additions and 2 deletions

View File

@@ -1796,7 +1796,7 @@ imap_folder_list_limit = 0
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
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)
command = 'mkdir -p /etc/opendkim/keys/'

View File

@@ -455,7 +455,7 @@ class InstallCyberPanel:
try:
f = open('/etc/resolv.conf', 'w')
f = open('/etc/resolv.conf', 'a')
f.write('nameserver 8.8.8.8')
f.close()
except IOError as e:

View File

@@ -16,6 +16,7 @@ from websiteFunctions.models import Websites, Backups
from plogical.processUtilities import ProcessUtilities
from random import randint
import json, requests
from datetime import datetime
class backupSchedule:
@@ -34,6 +35,8 @@ class backupSchedule:
def createLocalBackup(virtualHost, backupLogPath):
try:
startingTime = datetime.now()
backupSchedule.remoteBackupLogging(backupLogPath, "Starting local backup for: " + virtualHost)
###