From f79cb60667601e1c71af542556f18c06467e050c Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 23 Sep 2024 21:53:49 +0500 Subject: [PATCH] address a minor issue with apache installation on openvz --- install/install.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/install.py b/install/install.py index 7896a6797..c436027e5 100755 --- a/install/install.py +++ b/install/install.py @@ -327,6 +327,16 @@ def stdOut(message, log=0, do_exit=0, code=os.EX_OK): def mountTemp(self): try: + + result = subprocess.run('systemd-detect-virt', capture_output=True, text=True, shell=True) + + if result.stdout.find('openvz') == -1: + if self.distro == ubuntu: + command = 'DEBIAN_FRONTEND=noninteractive apt install inetutils-inetd -y' + preFlightsChecks.call(command, self.distro, command, + command, + 1, 0, os.EX_OSERR) + # ## On OpenVZ there is an issue using .tempdisk for /tmp as it breaks network on container after reboot. # # if subprocess.check_output('systemd-detect-virt').decode("utf-8").find("openvz") > -1: