Files
webgui/plugins/dynamix.plugin.manager/scripts/plugin_rm
bergware 0a3b9f0989 Plugin system update
- Detach frontend and backend operation
- Use nchan as communication channel
- Allow window to be closed while backend continues
- Use SWAL as window manager
2022-06-23 08:13:54 +02:00

13 lines
326 B
Bash
Executable File

#!/bin/bash
text="Deleting $1 ..."
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