]> ###2016.06.14 - add: dynamix plugin update api - add: help content ###2016.03.24 - update shellinabox to unofficial 2.20 - fix: https when ssl is enabled - remove linux-pam package ###2016.03.11 - add connect button on settings page - add setting button on tools page - rename plugin to cmdline since it is more than just shellinabox - fix: conform screenfetch OS: to 80 columns (remove brackets) - condense and restructure code ###2016.02.20 - fix: update plugin ovewriting home directory with saved ###2016.02.11a - fix screenfetch error if emhttp/var.ini were not ready ###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 - add: choice for command line screenshot - add: choice to backup settings in root directory on shutdown - add: backup restore on reboot e.g. mc settings, bash history - add: selection of all users of group users for runas ###2016.01.07c - add option to disable SSL ###2016.01.07b - remove install cert button for now ###2016.01.07a - fix cert link ###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 - fix misspelled cfg file - fix default port 8088 to 4200 ###2015.12.30 - remove old plugin directory on install ###2015.12.21 - move repo to unRAID-plugins - change plugin name to shellinabox-plugin - convert install and remove scripts - add package md5 and unRAID version check ###2015.10.23 - fix "no version information" log errors ###2015.09.20 - update shellinabox packages to unofficial 2.19 (revision e30c33d) - fix color styles ###2015.09.07 - fix start and stop scripts ###2015.09.06 - use markdown syntax and parse_plugin_cfg - change color styles ###2015.09.05 - fixed start event - add more color styles - fixed icon and image on black theme ###2015.09.04 - start and stop events - update run as user - update image ###2015.09.03 - initial commit &pkgURL;/shellinabox-2.20-x86_64-2.txz 59ed3289a33c40fecf95c8da658a8bd8 &gitURL;/archive/&plgNAME;.txz &gitURL;/archive/&plgNAME;.md5 #Verify unRAID Version source /etc/unraid-version if [[ ${version:0:3} == 6.0 ]]; then echo "unRAID version 6.1 or higher is required" exit 1 fi # Verify and install plugin package sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz) sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5) if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then echo "Wrong 'plugin' package md5 hash." rm &plgPATH;/&plgNAME;.txz rm &plgPATH;/&plgNAME;.md5 exit 1 else #remove old plugin and move old files OLDPLG="/boot/config/plugins/shellinabox-plugin" if [ -d /usr/local/emhttp/plugins/shellinabox ]; then rm -rf /usr/local/emhttp/plugins/shellinabox fi if [ -d /usr/local/emhttp/plugins/shellinabox-plugin ]; then rm -rf /usr/local/emhttp/plugins/shellinabox-plugin fi if [ -f $OLDPLG/shellinabox-plugin.cfg ]; then mv -f $OLDPLG/shellinabox-plugin.cfg &plgPATH;/cmdline.cfg fi if [ -f $OLDPLG/home_directory.tar.gz ]; then mv -f $OLDPLG/home_directory.tar.gz &plgPATH;/home_directory.tar.gz fi if [ -d $OLDPLG ]; then rm -rf $OLDPLG fi # upgrade package upgradepkg --install-new &plgPATH;/&plgNAME;.txz # start shellinabox daemon /etc/rc.d/rc.shellinaboxd startup # Cleaning old source files find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete find &plgPATH;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete echo "" echo "-----------------------------------------------------------" echo " &name; has been installed." echo " This plugin requires Dynamix webGui to operate" echo " Copyright 2016, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo "" fi # stop shellinabox daemon /etc/rc.d/rc.shellinaboxd shutdown removepkg &plgPATH;/*.txz rm -rf &emhttp; rm -f &plgPATH;/*.txz \ &plgPATH;/*.md5 echo "" echo "-----------------------------------------------------------" echo " &name; has been removed." echo " Copyright 2016, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo "" > "$CFGFILE" [ ! `cat "$CFGFILE" | grep SCREEN` ] && echo "SCREEN=\"disable\"" >> "$CFGFILE" [ ! `cat "$CFGFILE" | grep BACKUP` ] && echo "BACKUP=\"disable\"" >> "$CFGFILE" [ ! `cat "$CFGFILE" | grep SSL` ] && echo "SSL=\"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/cmdline-chkconf ]]>