mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 05:00:06 -06:00
14 lines
337 B
Bash
Executable File
14 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
|
|
text="Deleting $1 ..."
|
|
sleep 0.05
|
|
if [[ -z $2 ]]; then
|
|
echo $text
|
|
else
|
|
curl -sfd $text --unix-socket /var/run/nginx.socket http://localhost/pub/plugins?buffer_length=0 >/dev/null 2>&1
|
|
fi
|
|
|
|
# put some restrictions on 'rm'
|
|
[[ $1 == /boot/config/plugins-error/* ]] && rm $1
|
|
[[ $1 == /boot/config/plugins-stale/* ]] && rm $1
|