remove depreciated plgs
This commit is contained in:
parent
1bc2b37d70
commit
d4fed50d7f
|
@ -1,208 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "ipmitool-plugin">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.02.22">
|
||||
<!ENTITY launch "Tools/IPMItool">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY pkg "ipmitool-1.8.13-x86_64-1_slack.txz">
|
||||
<!ENTITY md5 "3301f21f0d66160877f90ffc3278703b">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||
|
||||
<CHANGES>
|
||||
###2016.02.22
|
||||
- fix: advanced changed to fixed instead of toggle
|
||||
###2016.02.15a
|
||||
- fix: array combine error for sensors with non uniform data
|
||||
###2016.02.15
|
||||
- update tablesorter
|
||||
- add: fan control page and status
|
||||
- fan control Not functional yet
|
||||
- add: settings for temps and fan display
|
||||
- add: temp and fans readings to footer
|
||||
- move event daemon start and stop functions to rc scripts
|
||||
- remove daemon start and stop with array
|
||||
- move daemon start process to plugin install
|
||||
- move daemon stop process to rc.local_shutdown
|
||||
###2016.01.17
|
||||
- add tablesorter as a separate package
|
||||
- fix values outside of critical showing green
|
||||
- add icons instead of switches
|
||||
- minor code changes
|
||||
###2015.12.30
|
||||
- remove old plugin directory on install
|
||||
###2015.12.20
|
||||
- fixed "Waiting for events" triggering notification on system start
|
||||
- reorganize events page
|
||||
- add switchbuttons
|
||||
- move from UnRAID OS to System Information under Tools menu
|
||||
- add unRAID version check
|
||||
###2015.12.14
|
||||
- make sure and remove old plugin
|
||||
###2015.12.11
|
||||
- change repo
|
||||
- change install and remove method
|
||||
###2015.11.17
|
||||
- fix permissions for events
|
||||
###2015.11.10b
|
||||
- deleted wrong page file
|
||||
###2015.11.10
|
||||
- stop event monitoring on plugin removal
|
||||
###2015.11.09
|
||||
- minor bug fixes
|
||||
###2015.11.08
|
||||
- add settings page
|
||||
- add event notifications
|
||||
- add remote IPMI access
|
||||
###2015.08.15
|
||||
- update for unRAID 6.1-rc+ only
|
||||
###2015.05.07a
|
||||
- fix bug
|
||||
###2015.05.07
|
||||
- initial unRAID 6 release.
|
||||
</CHANGES>
|
||||
|
||||
<!--
|
||||
The 'tablesorter' package file.
|
||||
-->
|
||||
<FILE Name="/boot/config/plugins/tablesorter/tablesorter-2016.02.12-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&gitURL;/archive/tablesorter-2016.02.12-x86_64-1.txz</URL>
|
||||
<MD5>d25fb1235efaa5f71c790b8d71ed7337</MD5>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
This plugin uses ipmitool to display sensor readings
|
||||
-->
|
||||
|
||||
<FILE Name="&plgPATH;/&pkg;" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/&pkg;</URL>
|
||||
<MD5>&md5;</MD5>
|
||||
</FILE>
|
||||
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
SERVICE="disable"
|
||||
REMOTE="disable"
|
||||
IPADDR=""
|
||||
USER=""
|
||||
PASSWORD="="
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' package file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&plgNAME;.txz">
|
||||
<URL>&gitURL;/archive/&plgNAME;.txz</URL>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' package MD5 hash.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&plgNAME;.md5">
|
||||
<URL>&gitURL;/archive/&plgNAME;.md5</URL>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="install">
|
||||
<INLINE>
|
||||
#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
|
||||
|
||||
#remove old plugin name directory
|
||||
if [ -d /usr/local/emhttp/plugins/ipmitool ]; then
|
||||
rm -rf /usr/local/emhttp/plugins/ipmitool
|
||||
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 \
|
||||
&plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
# Load impi drivers
|
||||
echo "loading ipmi drivers..."
|
||||
modprobe ipmi_si
|
||||
modprobe ipmi_devintf
|
||||
|
||||
# Start scripts if enabled
|
||||
<![CDATA[
|
||||
echo "starting ipmievd..."
|
||||
/etc/rc.d/rc.ipmievd start >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
echo "starting ipmitail..."
|
||||
setsid /etc/rc.d/rc.ipmitail start >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
]]>
|
||||
|
||||
# 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 2015, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
#stop daemon
|
||||
/etc/rc.d/rc.ipmievd stop
|
||||
sleep 1
|
||||
/etc/rc.d/rc.ipmitail stop
|
||||
sleep 1
|
||||
|
||||
removepkg &plgPATH;/*.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
|
||||
echo "unloading ipmi drivers..."
|
||||
modprobe -r ipmi_si
|
||||
modprobe -r ipmi_devintf
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2015, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
|
@ -1,230 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "cmdline">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.03.11">
|
||||
<!ENTITY launch "Settings/CommandLineSettings">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
||||
|
||||
<!--
|
||||
This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies are installed as needed and is controlable from the webgui.
|
||||
-->
|
||||
|
||||
<CHANGES>
|
||||
###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 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
|
||||
</CHANGES>
|
||||
|
||||
|
||||
<FILE Name="&plgPATH;/shellinabox-2.19-x86_64-1sl.txz" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/shellinabox-2.19-x86_64-1sl.txz</URL>
|
||||
<MD5>96f21406d18181f469e732795d2965e8</MD5>
|
||||
</FILE>
|
||||
<FILE Name="&plgPATH;/linux-pam-1.1.8-x86_64-1gds.txz" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/linux-pam-1.1.8-x86_64-1gds.txz</URL>
|
||||
<MD5>f5d4e99dc0b65f4d6b3bacf479c9c6e2</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
SERVICE="disable"
|
||||
SSL="disable"
|
||||
SCREEN="disable"
|
||||
BACKUP="disable"
|
||||
IPADDR="disable"
|
||||
PORT="4200"
|
||||
RUNAS="nobody"
|
||||
CERT="certificate.pem"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' package file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&plgNAME;.txz">
|
||||
<URL>&gitURL;/archive/&plgNAME;.txz</URL>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' package MD5 hash.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&plgNAME;.md5">
|
||||
<URL>&gitURL;/archive/&plgNAME;.md5</URL>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
#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
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
# 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 ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="/tmp/cmdline-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/cmdline/cmdline.cfg
|
||||
[ ! `cat "$CFGFILE" | grep SERVICE` ] && echo "SERVICE=\"disable\"" >> "$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
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Loading…
Reference in New Issue
Block a user