fix shutdown not saving, chmod error
This commit is contained in:
parent
121d89e076
commit
d645ea7e9b
|
@ -3,7 +3,7 @@
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "shellinabox-plugin">
|
<!ENTITY name "shellinabox-plugin">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.02.10">
|
<!ENTITY version "2016.02.11">
|
||||||
<!ENTITY launch "Settings/Shellinabox">
|
<!ENTITY launch "Settings/Shellinabox">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
|
@ -20,6 +20,9 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
###2016.02.11
|
||||||
|
- fix: chmod error
|
||||||
|
- fix: shutdown not saving
|
||||||
###2016.02.10
|
###2016.02.10
|
||||||
- remove array event scripts and move to rc script
|
- remove array event scripts and move to rc script
|
||||||
- start and stop with system not array
|
- start and stop with system not array
|
||||||
|
|
|
@ -11,8 +11,11 @@ Shell In A Box implements a web server that can export arbitrary command line to
|
||||||
</Description>
|
</Description>
|
||||||
<Support>http://lime-technology.com/forum/index.php?topic=42683.0</Support>
|
<Support>http://lime-technology.com/forum/index.php?topic=42683.0</Support>
|
||||||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png</Icon>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png</Icon>
|
||||||
<Date>2016-02-10</Date>
|
<Date>2016-02-11</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
|
###2016.02.11
|
||||||
|
- fix: chmod error
|
||||||
|
- fix: shutdown not saving
|
||||||
###2016.02.10
|
###2016.02.10
|
||||||
- remove array event scripts and move to rc script
|
- remove array event scripts and move to rc script
|
||||||
- start and stop with system not array
|
- start and stop with system not array
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/sh
|
#!/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"
|
SD_RCFILE="/etc/rc.d/rc.local_shutdown"
|
||||||
|
|
||||||
# Update file permissions of scripts
|
# Update file permissions of scripts
|
||||||
chmod +0755 /usr/local/emhttp/plugins/shellinabox-plugin/scripts/* \
|
chmod +0755 /usr/local/emhttp/plugins/shellinabox-plugin/scripts/* \
|
||||||
/etc/rc.d/rc.shellinaboxd \
|
/etc/rc.d/rc.shellinaboxd \
|
||||||
/usr/local/bin/screenfetch
|
/usr/sbin/screenfetch
|
||||||
|
|
||||||
# add stop to shutdown script
|
# add stop to shutdown script
|
||||||
if ! grep "$RC_SCRIPT" $SD_RCFILE >/dev/null 2>&1
|
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
|
fi
|
||||||
[ ! -x $SD_RCFILE ] && chmod u+x $SD_RCFILE
|
[ ! -x $SD_RCFILE ] && chmod u+x $SD_RCFILE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user