52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
<!DOCTYPE PLUGIN [
|
|
<!ENTITY name "u-navigator">
|
|
<!ENTITY author "michael">
|
|
<!ENTITY version "__VERSION__">
|
|
<!ENTITY package "&name;-&version;.tgz">
|
|
]>
|
|
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/u-navigator.plg">
|
|
|
|
<CHANGES>
|
|
### &version;
|
|
- Initial U-Navigator plugin spike.
|
|
- Installs WebGUI page, Node.js prototype backend, in-app window manager and drag-and-drop file navigator.
|
|
</CHANGES>
|
|
|
|
<FILE Name="/boot/config/plugins/&name;/&package;">
|
|
<URL>https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package;</URL>
|
|
<MD5>__MD5__</MD5>
|
|
</FILE>
|
|
|
|
<FILE Run="/bin/bash">
|
|
<INLINE>
|
|
mkdir -p /boot/config/plugins/&name;
|
|
tar -xzf /boot/config/plugins/&name;/&package; -C /
|
|
chmod +x /usr/local/emhttp/plugins/&name;/scripts/rc.u-navigator
|
|
ln -sf /usr/local/emhttp/plugins/&name;/scripts/rc.u-navigator /usr/local/sbin/rc.u-navigator
|
|
echo ""
|
|
echo "-----------------------------------------------------------"
|
|
echo " &name; &version; has been installed."
|
|
echo ""
|
|
echo " Start: rc.u-navigator start"
|
|
echo " Stop: rc.u-navigator stop"
|
|
echo " Status: rc.u-navigator status"
|
|
echo ""
|
|
echo " Note: This prototype requires Node.js to be available on Unraid."
|
|
echo "-----------------------------------------------------------"
|
|
echo ""
|
|
</INLINE>
|
|
</FILE>
|
|
|
|
<FILE Run="/bin/bash" Method="remove">
|
|
<INLINE>
|
|
rc.u-navigator stop 2>/dev/null || true
|
|
rm -f /usr/local/sbin/rc.u-navigator
|
|
rm -rf /usr/local/emhttp/plugins/&name;
|
|
rm -rf /boot/config/plugins/&name;
|
|
rm -f /var/run/&name;.pid
|
|
echo "&name; has been removed."
|
|
</INLINE>
|
|
</FILE>
|
|
|
|
</PLUGIN>
|