diff options
| author | Simon Rettberg | 2014-01-03 19:49:12 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-01-03 19:49:12 +0100 |
| commit | 03b934967040099068afd414a7b977eda687c71b (patch) | |
| tree | e64f2dd322f9ab142b0e36d9533ef78d40b56645 /remote/modules | |
| parent | Fix module cleanup (diff) | |
| download | tm-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-x | remote/modules/idleaction/data/opt/openslx/scripts/idleaction-cron_script | 3 |
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##*:} |
