]> ###2016.02.06 - fix events not executable - fix dockers not visible when running other than root - remove user selection ###2016.02.05 - initial commit "https://api.github.com/repos/linuxserver/Aesir/tarball/master" &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 upgradepkg --install-new &plgPATH;/&plgNAME;.txz fi # Update file permissions of plugin scripts chmod +0755 &emhttp;/scripts/* # 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 "" /usr/local/emhttp/plugins/&name;/scripts/stop removepkg &plgPATH;/*.txz rm -rf &emhttp; rm -f &plgPATH;/*.txz rm -f &plgPATH;/*.md5 rm -f &plgPATH;/&gitTAR; echo "" echo "-----------------------------------------------------------" echo " &name; has been removed." echo " Copyright 2016, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo "" > "$CFGFILE" [ ! `cat "$CFGFILE" | grep DOCROOT` ] && echo "DOCROOT=\"/mnt/cache/appdata/Aesir\"" >> "$CFGFILE" [ ! `cat "$CFGFILE" | grep ^PORT` ] && echo "PORT=\"8088\"" >> "$CFGFILE" [ ! `cat "$CFGFILE" | grep RUNAS` ] && echo "RUNAS=\"root\"" >> "$CFGFILE" rm /tmp/aesir-plugin-chkconf ]]>