unraid安装unbalance插件
概要:网络问题,手动、离线安装unbalance插件:
获取plg文件(可能可以跳过步骤2和3)从github下载包unbalance-master.zip,并将zip文件转为tar.gz格式文件移动到u盘的 config\plugins\unbalance 下进入gui,点击该链接的plg文件安装
流程:
因unraid的插件安装,会从github的这个链接 https://raw.githubusercontent.com/ 下载,但这个链接被无法访问,也就不能在线下载这个插件
报错如下图
故,手动下载插件,它有两部分,一个是plg文件,一个压缩包。
~~
一、获取plg文件plg文件:
https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/unbalance.plg
plg文件内容我放到最后,复制一下到一个空的txt文件,然后改下后缀就好。
成品图
二、压缩包:
github下载
jbrodriguez/unbalance
将zip格式转换tar.gz格式,网上教程很多啦
最终文件名如图,把master去掉后
三、文件移动到u盘
config\plugins\unbalance 下
四、gui界面安装
手动点到plg文件,然后安装即可。实测可以安装,倒腾了我两个小时。
感谢阅读!
plg文件内容:
<?xml version=&#39;1.0&#39; standalone=&#39;yes&#39;?>
<!DOCTYPE PLUGIN [
<!ENTITY name &#34;unbalance&#34;>
<!ENTITY author &#34;Juan B. Rodriguez&#34;>
<!ENTITY version &#34;v2019.10.26&#34;>
<!ENTITY appver &#34;5.6.3&#34;>
<!ENTITY launch &#34;Settings/&name;&#34;>
<!ENTITY pluginURL &#34;https://raw.githubusercontent.com/jbrodriguez/unraid/master/plugins/&name;.plg&#34;>
<!ENTITY bundle &#34;&name;-&appver;.tgz&#34;>
<!ENTITY md5 &#34;1e57e2c5d951ce9ba171860c82f410cb&#34;>
]>
<PLUGINname=&#34;&name;&#34;
author=&#34;&author;&#34;
version=&#34;&version;&#3;
appver=&#34;&appver;&#34;
launch=&#34;&launch;&#34;
pluginURL=&#34;&pluginURL;&#34;
>
<CHANGES>
2019-10-26 - 5.6.3
- Support 6.8.x
- Add missing isNumber function
- Upgrade some libraries
- Switch to yarn
</CHANGES>
<!--
The plugin frees up space from a disk array in unRAID systems.
-->
<!--
Get the unBALANCE bundle.
-->
<FILE Name=&#34;/boot/config/plugins/&name;/&bundle;&#34;>
<URL>&#34;https://github.com/jbrodriguez/unbalance/releases/download/&appver;/&bundle;&#34;</URL>
<MD5>&md5;</MD5>
</FILE>
<!-- Install default plugin cfg-->
<FILE Name=&#34;/boot/config/plugins/unbalance/unbalance.cfg&#34;>
<INLINE>
<![CDATA[
SERVICE=&#34;disable&#34;
PORT=&#34;6237&#34;
RUNAS=&#34;nobody&#34;
]]>
</INLINE>
</FILE>
<!--
Prepare for installation.
-->
<FILE Run=&#34;/bin/bash&#34;>
<INLINE>
running=$(pidof controlr | wc -w)
# Remove emhttp files so we can re-install.
rm -rf /usr/local/emhttp/plugins/&name;/* 2>/dev/null
# Remove old &#39;bundle&#39; files.
rm -f $(ls /boot/config/plugins/&name;/&name;*.tgz 2>/dev/null | grep -v &#39;&appver;&#39;)
# Install the &#39;bundle&#39;.
tar -xf /boot/config/plugins/&name;/&bundle; -C /usr/local/emhttp/plugins
# start the plugin if it was running previously
if [ $running -eq 1 ]; then
/usr/local/emhttp/plugins/&name;/scripts/start
fi
echo &#34;&#34;
echo &#34;-----------------------------------------------------------&#34;
echo &#34; unBALANCE has been installed.&#34;
echo &#34; Copyright (c) &author;&#34;
echo &#34; Version: &version;&#34;
echo &#34;-----------------------------------------------------------&#34;
echo &#34;&#34;
</INLINE>
</FILE>
<!--
The &#39;remove&#39; script.
-->
<FILE Run=&#34;/bin/bash&#34; Method=&#34;remove&#34;>
<INLINE>
/usr/local/emhttp/plugins/&name;/scripts/stop
# Remove all plugin files.
rm -rf /usr/local/emhttp/plugins/&name;
rm -rf /boot/config/plugins/&name;
echo &#34;&#34;
echo &#34;-----------------------------------------------------------&#34;
echo &#34; unBALANCE has been removed.&#34;
echo &#34; Copyright (c) &author;&#34;
echo &#34; Version: &version;&#34;
echo &#34;-----------------------------------------------------------&#34;
echo &#34;&#34;
</INLINE>
</FILE>
<FILE Name=&#34;/tmp/unbalance-chkconf&#34; Run=&#34;/bin/bash&#34;>
<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/unbalance/unbalance.cfg
[ ! `cat &#34;$CFGFILE&#34; | grep SERVICE` ] && echo &#34;SERVICE=\&#34;disable\&#34;&#34; >> &#34;$CFGFILE&#34;
[ ! `cat &#34;$CFGFILE&#34; | grep ^PORT` ] && echo &#34;PORT=\&#34;6237\&#34;&#34; >> &#34;$CFGFILE&#34;
[ ! `cat &#34;$CFGFILE&#34; | grep RUNAS` ] && echo &#34;RUNAS=\&#34;nobody\&#34;&#34; >> &#34;$CFGFILE&#34;
rm /tmp/unbalance-chkconf
]]>
</INLINE>
</FILE>
<FILE Name=&#34;/tmp/unbalance-chkconf2&#34; Run=&#34;/bin/bash&#34;>
<INLINE>
<![CDATA[
#!/bin/sh
# This should run for v5.0.x only
# If unbalance.conf is present, reset the rsyncArgs flag to the new default
CONF=/boot/config/plugins/unbalance/unbalance.conf
[ -f &#34;$CONF&#34; ] && sed -i &#39;s/rsyncArgs.*/rsyncArgs=-X/&#39; &#34;$CONF&#34;
rm /tmp/unbalance-chkconf2
]]>
</INLINE>
</FILE>
</PLUGIN>
页:
[1]