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