add ip address option

This commit is contained in:
Derek Macias
2016-01-07 00:01:17 -07:00
parent edf42e7f78
commit d81b6eec4f
4 changed files with 45 additions and 10 deletions

View File

@ -3,7 +3,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "shellinabox-plugin">
<!ENTITY author "dmacias72">
<!ENTITY version "2016.01.06">
<!ENTITY version "2016.01.07">
<!ENTITY launch "Settings/Shellinabox">
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
@ -20,6 +20,11 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
-->
<CHANGES>
###2016.01.07
- add ip address connection option
- add install certificate button
- fix starting service with changed settings not saving
- default config file
###2016.01.06
- change package path to plugin directory
- fix Tool/Command Line page misspelled cfg file and defaulting to port 8088 instead of 4200
@ -62,6 +67,16 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a
<MD5>f5d4e99dc0b65f4d6b3bacf479c9c6e2</MD5>
</FILE>
<FILE Name="/boot/config/plugins/shellinabox-plugin/shellinabox-plugin.cfg">
<INLINE>
<![CDATA[
SERVICE="disable"
IPADDR="disable"
PORT="4200"
RUNAS="nobody"
]]>
</INLINE>
</FILE>
<!--
The 'plugin' package file.
@ -151,6 +166,7 @@ echo ""
# This will check each entry in the config so nothing is missing, and if missing, sets to default
CFGFILE=/boot/config/plugins/shellinabox-plugin/shellinabox-plugin.cfg
[ ! `cat "$CFGFILE" | grep SERVICE` ] && echo "SERVICE=\"disable\"" >> "$CFGFILE"
[ ! `cat "$CFGFILE" | grep IPADDR` ] && echo "IPADDR=\"disable\"" >> "$CFGFILE"
[ ! `cat "$CFGFILE" | grep ^PORT` ] && echo "PORT=\"4200\"" >> "$CFGFILE"
[ ! `cat "$CFGFILE" | grep RUNAS` ] && echo "RUNAS=\"nobody\"" >> "$CFGFILE"
rm /tmp/shellinabox-chkconf

View File

@ -11,8 +11,13 @@ 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-01-06</Date>
<Date>2016-01-07</Date>
<Changes>
###2016.01.07
- add ip address connection option
- add install certificate button
- fix starting service with changed settings not saving
- default config file
###2016.01.06
- change package path to plugin directory
- fix Tool/Command Line page misspelled cfg file and defaulting to port 8088 instead of 4200