execute install.sh in directory if it exists
This commit is contained in:
parent
24c51481dc
commit
ee30935983
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user