fix shutdown not saving, chmod error
This commit is contained in:
parent
121d89e076
commit
d645ea7e9b
|
@ -3,7 +3,7 @@
|
|||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "shellinabox-plugin">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.02.10">
|
||||
<!ENTITY version "2016.02.11">
|
||||
<!ENTITY launch "Settings/Shellinabox">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
|
@ -20,6 +20,9 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
|
|||
-->
|
||||
|
||||
<CHANGES>
|
||||
###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
|
||||
|
|
|
@ -11,8 +11,11 @@ Shell In A Box implements a web server that can export arbitrary command line to
|
|||
</Description>
|
||||
<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>
|
||||
<Date>2016-02-10</Date>
|
||||
<Date>2016-02-11</Date>
|
||||
<Changes>
|
||||
###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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user