-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathun.recyclarr.plg
248 lines (197 loc) · 5.69 KB
/
un.recyclarr.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE PLUGIN [
<!ENTITY name "un.recyclarr">
<!ENTITY author "fabricionaweb">
<!ENTITY version "2024.12.23">
<!ENTITY gitURL "https://github.com/&author;/&name;">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&author;/&name;/master/&name;.plg">
<!ENTITY md5 "3129305bc54d7be87915a321fa38307d">
<!ENTITY launch "Settings/Recyclarr">
<!ENTITY flash "/boot/config/plugins/&name;">
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
<!ENTITY appdata "/root/.config/recyclarr">
]>
<PLUGIN
name="&name;"
author="&author;"
version="&version;"
pluginURL="&pluginURL;"
launch="&launch;"
support="&gitURL;/issues"
icon="fa-trash-o"
min="6.12.0"
>
<!--
Release notes
-->
<CHANGES>
### &version;
- Upgrade ace-editor to 1.37.1
- Upgrade binary to 7.4.0 - https://github.com/recyclarr/recyclarr/releases/tag/v7.4.0
### 2024.09.05
- Upgrade ace-editor to 1.36.2
- Upgrade binary to 7.2.3 - https://github.com/recyclarr/recyclarr/releases/tag/v7.2.3
### 2024.08.05
- Upgrade ace-editor to 1.35.4
- Upgrade binary to 7.2.1 - https://github.com/recyclarr/recyclarr/releases/tag/v7.2.1
- Upgrade guide https://recyclarr.dev/wiki/upgrade-guide/v7.0/
### 2024.02.20
- Upgrade ace-editor to 1.32.3
- Parse !secret on ace-editor
- Prevent the editor to close when press ESC
### 2023.12.05
- Upgrade ace-editor to 1.32.0
- Display shorter recyclarr version
### 2023.11.03
- Upgrade binary to 6.0.2 - https://github.com/recyclarr/recyclarr/releases/tag/v6.0.2
### 2023.09.23
- Mirror logs to /var/log/recyclarr
- Remove verbose and preview from syslog
- Fix missing console messages when crontab runs
### 2023.09.19
- Upgrade binary to 5.4.3 - https://github.com/recyclarr/recyclarr/releases/tag/v5.4.3
### 2023.09.16
- Upgrade binary to 5.4.2 - https://github.com/recyclarr/recyclarr/releases/tag/v5.4.2
### 2023.09.14
- Upgrade binary to 5.4.1 - https://github.com/recyclarr/recyclarr/releases/tag/v5.4.1
### 2023.08.31
- Upgrade binary to 5.3.1 - https://github.com/recyclarr/recyclarr/releases/tag/v5.3.1
### 2023.08.08
- Upgrade binary to 5.2.1 - https://github.com/recyclarr/recyclarr/releases/tag/v5.2.1
### 2023.08.07
- Upgrade binary to 5.2.0 - https://github.com/recyclarr/recyclarr/releases/tag/v5.2.0
## 2023.06.30
- Upgrade binary to 5.1.1
### 2023.06.26-4
- Fix to PHP8 and Unraid 6.12
- Upgrade binary to 5.1.0
### 2023.06.26-1
- Add debug mode to manual run
### 2023.06.26
- Upgrade binary to 5.0.3
### 2023.06.25
- Upgrade binary to 5.0.2
### 2023.04.24
- Upgrade binary to 5.0.1
### 2023.04.23
- Upgrade binary to 5.0.0
- Remove repo folder during install/upgrade
### 2023.04.10-1
- Add the hability to dry-run and to select the config file to manual run
### 2023.04.10
- Upgrade binary version to v4.4.1
- Refactor PHP code
### 2023.04.07
- Display binary version on settings page
### 2023.04.07
- Allow delete config files
- Refactor frontend scripts
- Preserve cache folder
### 2023.04.01-1
- Fix css aligment in configuration section
### 2023.04.01
- List config files
- Allow create config files
- Allow edit config files
### 2023.03.28-2
- Allow input for custom cron expressions
### 2023.03.28-1
- Use the same script to run cron and manual
- Manual run now send logs to syslog
### 2023.03.28
- Save settings using xhr request
### 2023.03.27-1
- Add EOL to cron file generation
### 2023.03.27
- Fix manual run on Firefox
- Improve manual run bash script
### 2023.03.26-3
- Rewrite the cron logic
- Force reinstall package
- Update the uninstall script
### 2023.03.26-2
- Dont create cron during install
### 2023.03.26-1
- Fix scripts permission
### 2023.03.26
- Add interface with manual run and cron settings
- Create txz installer
### 2023.03.21-2
- Save the plugin in the flash
### 2023.03.21-1
- Fix the message about cron time. Unraid runs at 4:40 - see crontab -l
### 2023.03.21
- Add secrets.yml
### 2023.03.20-1
- Set folders permission 644
### 2023.03.20
- First release
</CHANGES>
<!--
Plugin description
-->
<FILE Name="&emhttp;/README.md">
<INLINE>
**Recyclarr**
Automatically sync TRaSH guides to your Sonarr and Radarr instances. Allows you to create and edit config files via web interface.
</INLINE>
</FILE>
<!--
Get the plugin and save
-->
<FILE Name="&flash;/&name;-&version;.txz" Run="upgradepkg --install-new --reinstall">
<URL>&gitURL;/releases/download/&version;/&name;.txz</URL>
<MD5>&md5;</MD5>
</FILE>
<!--
The 'pre-install' script
-->
<FILE Run="/bin/bash">
<INLINE>
echo "Removing old versions"
find &flash; -type f -name "&name;-*.txz" ! -name "&name;-&version;.txz" -delete
rm -rf &appdata;/repo*
</INLINE>
</FILE>
<!--
The 'install' script
-->
<FILE Run="/bin/bash">
<INLINE>
echo "Creating folders and files"
install -dm644 &flash;/{configs,cache} &appdata;/{logs,repositories} /var/log/recyclarr
if [[ ! -f &flash;/secrets.yml ]]; then
install -m600 /dev/null &flash;/secrets.yml
fi
echo "Pointing symlinks to flash"
ln -sf &flash;/secrets.yml &appdata;
ln -sf &flash;/configs -T &appdata;/configs
ln -sf &flash;/cache -T &appdata;/cache
echo "Pointing logs to /var/log"
ln -sf /var/log/recyclarr &appdata;/logs/cli
</INLINE>
</FILE>
<!--
The 'post-install' script
-->
<FILE Run="/bin/bash">
<INLINE>
echo "------------------------------------"
echo "--- Recyclarr has been installed ---"
echo "------------------------------------"
</INLINE>
</FILE>
<!--
The 'remove' script
-->
<FILE Run="/bin/bash" Method="remove">
<INLINE>
removepkg &name;-&version;
rm -rf &emhttp; &appdata; &flash;/*.{cron,txz} /var/log/recyclarr
/usr/local/sbin/update_cron
echo "--------------------------------------"
echo "--- Recyclarr has been uninstalled ---"
echo "--------------------------------------"
</INLINE>
</FILE>
</PLUGIN>