Files
webgui/plugins/dynamix.plugin.manager/scripts/plugin_rm
bergware 8308ae5842 Plugin system and docker update
- Use buffering in nchan communication
- Start any background command delayed
- Added openDokcer routine
- Code optimization
2022-08-09 16:36:56 +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=1 >/dev/null 2>&1
fi
# put some restrictions on 'rm'
[[ $1 == /boot/config/plugins-error/* ]] && rm $1
[[ $1 == /boot/config/plugins-stale/* ]] && rm $1