minor changes
This commit is contained in:
parent
6325b3f7c8
commit
56ec015466
|
@ -1,8 +1,10 @@
|
||||||
|
<?xml version='1.0' standalone='yes'?>
|
||||||
|
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "shellinabox-plugin">
|
<!ENTITY name "shellinabox-plugin">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2015.12.21">
|
<!ENTITY version "2015.12.21">
|
||||||
<!ENTITY launch "Settings/&name;">
|
<!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">
|
||||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||||
|
@ -123,7 +125,7 @@ The 'remove' script.
|
||||||
/usr/local/emhttp/plugins/&name;/scripts/stop
|
/usr/local/emhttp/plugins/&name;/scripts/stop
|
||||||
removepkg &plgpath;/*.txz
|
removepkg &plgpath;/*.txz
|
||||||
rm -rf &emhttp;
|
rm -rf &emhttp;
|
||||||
rm -f &plgpath;/&plgname;.txz
|
rm -f &plgpath;/*.txz
|
||||||
rm -f &plgpath;/&plgname;.md5
|
rm -f &plgpath;/&plgname;.md5
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -136,4 +138,18 @@ echo ""
|
||||||
</INLINE>
|
</INLINE>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
|
<FILE Name="/tmp/shellinabox-chkconf" Run="/bin/bash">
|
||||||
|
<INLINE>
|
||||||
|
<![CDATA[
|
||||||
|
#!/bin/sh
|
||||||
|
# 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 ^PORT` ] && echo "PORT=\"4200\"" >> "$CFGFILE"
|
||||||
|
[ ! `cat "$CFGFILE" | grep RUNAS` ] && echo "RUNAS=\"nobody\"" >> "$CFGFILE"
|
||||||
|
rm /tmp/shellinabox-chkconf
|
||||||
|
]]>
|
||||||
|
</INLINE>
|
||||||
|
</FILE>
|
||||||
|
|
||||||
</PLUGIN>
|
</PLUGIN>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Icon="shellinabox.png"
|
Icon="shellinabox-plugin.png"
|
||||||
Menu="NetworkServices"
|
Menu="NetworkServices"
|
||||||
Title="Command Line"
|
Title="Command Line"
|
||||||
---
|
---
|
||||||
|
@ -60,6 +60,7 @@ function checkRUNNING(form) {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$(".stopped").prop("disabled", (form.SERVICE.value == "enable"));
|
$(".stopped").prop("disabled", (form.SERVICE.value == "enable"));
|
||||||
|
|
||||||
if (form.SERVICE.value == "enable")
|
if (form.SERVICE.value == "enable")
|
||||||
form.command.value = "/usr/local/emhttp/plugins/shellinabox-plugin/scripts/start";
|
form.command.value = "/usr/local/emhttp/plugins/shellinabox-plugin/scripts/start";
|
||||||
else {
|
else {
|
||||||
|
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in New Issue
Block a user