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

View File

@ -14,6 +14,7 @@ import tempfile
import re import re
import getopt import getopt
import time import time
import subprocess
# #
import Userconfig.cfgfile as cfgfile import Userconfig.cfgfile as cfgfile
@ -88,6 +89,8 @@ def workdir(directory):
except ValueError: except ValueError:
reverse_sort = False 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 # walk through all know classes in directory and find filenames
for h in classchecks.__classes_for_host__(reverse_sort): for h in classchecks.__classes_for_host__(reverse_sort):