execute install.sh in directory if it exists

This commit is contained in:
Marcus Stoegbauer 2019-07-04 22:19:16 +02:00
parent 24c51481dc
commit ee30935983
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import tempfile
import re
import getopt
import time
import subprocess
#
import Userconfig.cfgfile as cfgfile
@ -88,6 +89,8 @@ def workdir(directory):
except ValueError:
reverse_sort = False
if os.access(directory + "/install.sh", os.X_OK):
subprocess.call([directory + "/install.sh"])
# walk through all know classes in directory and find filenames
for h in classchecks.__classes_for_host__(reverse_sort):