summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2014-01-03 19:49:12 +0100
committerSimon Rettberg2014-01-03 19:49:12 +0100
commit03b934967040099068afd414a7b977eda687c71b (patch)
treee64f2dd322f9ab142b0e36d9533ef78d40b56645 /remote/modules
parentFix module cleanup (diff)
downloadtm-scripts-03b934967040099068afd414a7b977eda687c71b.tar.gz
tm-scripts-03b934967040099068afd414a7b977eda687c71b.tar.xz
tm-scripts-03b934967040099068afd414a7b977eda687c71b.zip
Add path and shell just to be safe
Diffstat (limited to 'remote/modules')
-rwxr-xr-xremote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
index 9c3f2d83..746f2f47 100755
--- a/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
+++ b/remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script
@@ -105,6 +105,9 @@ invalid_time ()
if [ -n "$SLX_SHUTDOWN_SCHEDULE" ] && [ ! -e "$CRONFILE" ]; then
echo "# OpenSLX: Trigger poweroff at certain time of day" > "$CRONFILE"
+ echo "SHELL=/bin/ash" >> "$CRONFILE"
+ echo "PATH=/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin:/opt/openslx/sbin:/opt/openslx/bin" >> "$CRONFILE"
+ echo "" >> "$CRONFILE"
for time in $SLX_SHUTDOWN_SCHEDULE; do
HOUR=${time%%:*}
MINUTE=${time##*:}