mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
systemd-addon-wrapper: remove system.d/$1.service on disable. just in case..
This commit is contained in:
parent
96e0c77eeb
commit
98f5c232c7
@ -26,6 +26,7 @@ if [ -f "/storage/.kodi/addons/$1/system.d/$1.service" ] ; then
|
||||
# disable = true: cleanup
|
||||
systemctl stop "$1.service"
|
||||
systemctl disable "/storage/.kodi/addons/$1/system.d/$1.service"
|
||||
rm -f "/storage/.config/system.d/$1.service" # just in case..
|
||||
else
|
||||
# disable = false: setup
|
||||
systemctl enable "/storage/.kodi/addons/$1/system.d/$1.service"
|
||||
|
Loading…
x
Reference in New Issue
Block a user