Skip to content

Commit

Permalink
address a minor issue with apache installation on openvz
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 23, 2024
1 parent 620c652 commit f79cb60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f79cb60

Please sign in to comment.