From d645ea7e9be532e9b86e7079d489f7a7a8573459 Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Thu, 11 Feb 2016 00:58:55 -0700 Subject: [PATCH] fix shutdown not saving, chmod error --- plugins/shellinabox-plugin.plg | 5 ++++- plugins/shellinabox-plugin.xml | 5 ++++- source/shellinabox-plugin/install/doinst.sh | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/plugins/shellinabox-plugin.plg b/plugins/shellinabox-plugin.plg index e832fb0c..14cefb1e 100755 --- a/plugins/shellinabox-plugin.plg +++ b/plugins/shellinabox-plugin.plg @@ -3,7 +3,7 @@ - + @@ -20,6 +20,9 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a --> +###2016.02.11 +- fix: chmod error +- fix: shutdown not saving ###2016.02.10 - remove array event scripts and move to rc script - start and stop with system not array diff --git a/plugins/shellinabox-plugin.xml b/plugins/shellinabox-plugin.xml index 295303c4..0d8eed10 100644 --- a/plugins/shellinabox-plugin.xml +++ b/plugins/shellinabox-plugin.xml @@ -11,8 +11,11 @@ Shell In A Box implements a web server that can export arbitrary command line to http://lime-technology.com/forum/index.php?topic=42683.0 https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png -2016-02-10 +2016-02-11 +###2016.02.11 +- fix: chmod error +- fix: shutdown not saving ###2016.02.10 - remove array event scripts and move to rc script - start and stop with system not array diff --git a/source/shellinabox-plugin/install/doinst.sh b/source/shellinabox-plugin/install/doinst.sh index ed27a911..8b4b7e3b 100644 --- a/source/shellinabox-plugin/install/doinst.sh +++ b/source/shellinabox-plugin/install/doinst.sh @@ -1,14 +1,14 @@ #!/bin/sh -RC_SCRIPT="/etc/rc.d/rc.shellinaboxd shutdown" +RC_SCRIPT="/etc/rc.d/rc.shellinaboxd" SD_RCFILE="/etc/rc.d/rc.local_shutdown" # Update file permissions of scripts chmod +0755 /usr/local/emhttp/plugins/shellinabox-plugin/scripts/* \ /etc/rc.d/rc.shellinaboxd \ - /usr/local/bin/screenfetch + /usr/sbin/screenfetch # add stop to shutdown script if ! grep "$RC_SCRIPT" $SD_RCFILE >/dev/null 2>&1 - then echo -e "\n[ -x $RC_SCRIPT ] && $RC_SCRIPT" >> $SD_RCFILE + then echo -e "\n[ -x $RC_SCRIPT ] && $RC_SCRIPT shutdown" >> $SD_RCFILE fi [ ! -x $SD_RCFILE ] && chmod u+x $SD_RCFILE