From 52e7f038f1fb3ea1c37afa5ef12ccd9581c3527a Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 13 Dec 2019 17:43:00 +0500 Subject: [PATCH] bug fix: install --- install/install.py | 2 +- install/installCyberPanel.py | 2 +- plogical/backupSchedule.py | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install/install.py b/install/install.py index ccbbabe0c..5b07ac2f2 100755 --- a/install/install.py +++ b/install/install.py @@ -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/' diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 5c3e76d2c..c72a5c461 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -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: diff --git a/plogical/backupSchedule.py b/plogical/backupSchedule.py index eb8b3a482..a739fb780 100755 --- a/plogical/backupSchedule.py +++ b/plogical/backupSchedule.py @@ -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) ###