From efe12a9d00bd68af4370bd652c4f6f1a17f5d3e6 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Thu, 7 Jan 2016 10:30:18 -0700 Subject: [PATCH] fix cert link --- plugins/shellinabox-plugin.plg | 4 +++- plugins/shellinabox-plugin.xml | 2 ++ .../plugins/shellinabox-plugin/Shellinabox.page | 11 ++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/plugins/shellinabox-plugin.plg b/plugins/shellinabox-plugin.plg index 4b27d3f9..efcd9a0e 100755 --- a/plugins/shellinabox-plugin.plg +++ b/plugins/shellinabox-plugin.plg @@ -3,7 +3,7 @@ - + @@ -20,6 +20,8 @@ This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies a --> +###2016.01.07a +- fix cert link ###2016.01.07 - add ip address connection option - add install certificate button diff --git a/plugins/shellinabox-plugin.xml b/plugins/shellinabox-plugin.xml index 8fed1e04..fc505d5d 100644 --- a/plugins/shellinabox-plugin.xml +++ b/plugins/shellinabox-plugin.xml @@ -13,6 +13,8 @@ Shell In A Box implements a web server that can export arbitrary command line to https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/shellinabox-plugin.png 2016-01-07 +###2016.01.07a +- fix cert link ###2016.01.07 - add ip address connection option - add install certificate button diff --git a/source/shellinabox-plugin/usr/local/emhttp/plugins/shellinabox-plugin/Shellinabox.page b/source/shellinabox-plugin/usr/local/emhttp/plugins/shellinabox-plugin/Shellinabox.page index 01ade5e7..b818d1ba 100644 --- a/source/shellinabox-plugin/usr/local/emhttp/plugins/shellinabox-plugin/Shellinabox.page +++ b/source/shellinabox-plugin/usr/local/emhttp/plugins/shellinabox-plugin/Shellinabox.page @@ -6,10 +6,11 @@ Title="Command Line" $sName = "shellinaboxd"; $shellinabox_cfg = parse_plugin_cfg("shellinabox-plugin"); $shellinabox_service = isset($shellinabox_cfg['SERVICE']) ? $shellinabox_cfg['SERVICE'] : "disable"; -$shellinabox_runas = isset($shellinabox_cfg['RUNAS']) ? $shellinabox_cfg['RUNAS'] : "nobody"; -$shellinabox_ipaddr = isset($shellinabox_cfg['IPADDR']) ? $shellinabox_cfg['IPADDR'] : "disable"; -$shellinabox_host = ($shellinabox_ipaddr == "disable") ? $var['NAME'] : $var['IPADDR']; +$shellinabox_runas = isset($shellinabox_cfg['RUNAS']) ? $shellinabox_cfg['RUNAS'] : "nobody"; +$shellinabox_ipaddr = isset($shellinabox_cfg['IPADDR']) ? $shellinabox_cfg['IPADDR'] : "disable"; +$shellinabox_host = ($shellinabox_ipaddr == "disable") ? $var['NAME'] : $var['IPADDR']; $shellinabox_port = (isset($shellinabox_cfg['PORT']) && is_numeric($shellinabox_cfg['PORT']) && $shellinabox_cfg['PORT'] > 0 && $shellinabox_cfg['PORT'] < 65535 ) ? $shellinabox_cfg['PORT'] : "4200"; +$shellinabox_cert = isset($shellinabox_cfg['CERT']) ? $shellinabox_cfg['CERT'] : "certificate.pem"; $shellinabox_running = trim(shell_exec( "[ -f /proc/`cat /var/run/shellinaboxd.pid 2> /dev/null`/exe ] && echo 'yes' || echo 'no' 2> /dev/null" )); $shellinabox_version = shell_exec( "/usr/sbin/shellinaboxd --version 2>&1 | grep ShellInABox | sed -e 's/^ShellInABox version //'" ); $shellinabox_version = ($shellinabox_running == "yes") ? @@ -34,7 +35,7 @@ Connect by IP Address: Port: -: +: Run as User: : > -: +: