From 6d31b366f4c6a9cc3f5ab5f1de0e07c1814ae3a6 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Fri, 5 Feb 2016 23:11:28 -0700 Subject: [PATCH] initial commit of aesir plugin --- plugins/aesir-plugin.plg | 139 +++++++++++++++++++++++++++++++++++++++ plugins/aesir.png | Bin 0 -> 37121 bytes 2 files changed, 139 insertions(+) create mode 100644 plugins/aesir-plugin.plg create mode 100644 plugins/aesir.png diff --git a/plugins/aesir-plugin.plg b/plugins/aesir-plugin.plg new file mode 100644 index 00000000..88aeeccf --- /dev/null +++ b/plugins/aesir-plugin.plg @@ -0,0 +1,139 @@ + + + + + + + + + + + + + +]> + + + + + + +###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;, Kode" +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 + +echo "" +echo "-----------------------------------------------------------" +echo " &name; has been removed." +echo " Copyright 2016, &author;, Kode" +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=\"nobody\"" >> "$CFGFILE" +rm /tmp/aesir-plugin-chkconf +]]> + + + + \ No newline at end of file diff --git a/plugins/aesir.png b/plugins/aesir.png new file mode 100644 index 0000000000000000000000000000000000000000..c33767ed9efea2e3996dbdfdf67d5e4bc5cead47 GIT binary patch literal 37121 zcmeI536vGZ6^7rN8JJ;2b|#3486!~v0VPI_CK5b@LKG5I6eIf%3bGi*M58D%5|hXl z5Lsk91kj*HJt!vb2BT&pXig$-C`txFqUZ*Hh-TH6c z+qLw-v>)`k=-A@c#i3B>*dE=>F6BN*S5bX_H{W~XIoukI?|#*!P^i%hy29(PTRDuv z!s~nV>{j@0US58uwtXKtb4Dms8tPHj_43K#(CfFhyA6t5${~fgA!k1ab)E z5Xd2rLm-Dh4uPWiYEea7dTw-#XOWy)T*w4FNNxa2Qd1dM3)PtP;|lrnlD+hWJh$FNghM&#RH0> zc`)>QgrL&svf9kox(5JKdjRN~3v(lWKnhk^7<%W7gDVmAPUsQ08uX) z7=U#?bRA4ynwt6GQT5>+l}sjO^7{K!=gyLpudP(8Aqb%Q((&JB==?@roE|eh=i?A*t~Yq$waHT2n+FS!V=a-G=sBMs=7gB?<~B0uu1=N=X!3 zaSXI~il;V1QB8QjV_guSOn)%uSaGbS`=&K$ikS5bIHb%n=F91>ITCAK}_pC=hXZU{=S zmsF!3AcYvM?{Pc9i*m_m@Pe~g)xH{CH)6zylD&KP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