-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmergerfs.plg
105 lines (91 loc) · 2.45 KB
/
mergerfs.plg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "mergerfs">
<!ENTITY author "tonyuh">
<!ENTITY version "2020.03.10">
<!ENTITY pluginURL "https://github.com/tonyuh/unraid-mergerfs/raw/master/mergerfs.plg">
<!ENTITY MD5 "d31eef2db83e407d09d6dffae8600be7">
<!ENTITY ReadmeMD5 "d31eef2db83e407d09d6dffae8600be7">
]>
<PLUGIN name="&name;"
author="&author;"
version="&version;"
pluginURL="&pluginURL;">
<CHANGES>
##&name;
###&version;
- Initial Unraid release using the following:
mergerfs version: 2.29.0
FUSE library version: 2.9.7-mergerfs_2.29.0
fusermount3 version: 3.9.0
using FUSE kernel interface version 7.31
</CHANGES>
<!--
The 'pre-install' script.
-->
<FILE Run="/bin/bash">
<INLINE>
# Remove emhttp files so we can re-install.
rm -f -r /usr/local/emhttp/plugins/&name;/* 2>/dev/null
</INLINE>
</FILE>
<!--
Get the plugin bundle.
-->
<FILE Name="/boot/config/plugins/&name;/&name;">
<URL>"https://github.com/tonyuh/unraid-&name;/raw/master/&name;"</URL>
<MD5>&MD5;</MD5>
</FILE>
<!--
create plugin README.md file
-->
<FILE Name="/boot/config/plugins/&name;/README.md">
<INLINE>
**mergerfs**
This plugin installs Mergerfs for Unraid in /bin/.
Using mergerfs version: 2.29.0, FUSE library version: 2.9.7-mergerfs_2.29.0, fusermount3 version: 3.9.0, FUSE kernel interface version 7.31
For more information about mergerfs visit: https://github.com/trapexit/mergerfs
</INLINE>
</FILE>
<!--
Install the plugin bundle.
-->
<FILE Run="/bin/bash">
<INLINE>
# Install the plugin.
mkdir /usr/local/emhttp/plugins/&name;/
cp /boot/config/plugins/&name;/* /usr/local/emhttp/plugins/&name;/ 2>/dev/null
# Adjust plugin permissions.
chmod 755 -R /usr/local/emhttp/plugins/&name; 2>/dev/null
</INLINE>
</FILE>
<!--
The 'post-install' script.
-->
<FILE Run="/bin/bash">
<INLINE>
echo ""
echo "-----------------------------------------------------------"
echo " &name; is installed."
echo " Version: &version;"
echo "-----------------------------------------------------------"
echo ""
</INLINE>
</FILE>
<!--
The 'remove' script.
-->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
# Remove all plugin files.
rm -f -r /usr/local/emhttp/plugins/&name; 2>/dev/null
rm -f -r /boot/config/plugins/&name; 2>/dev/null
echo ""
echo "-----------------------------------------------------------"
echo " &name; has been removed."
echo " Version: &version;"
echo "-----------------------------------------------------------"
echo ""
</INLINE>
</FILE>
</PLUGIN>