systemd-addon-wrapper: make binary addons executable before starting service

This commit is contained in:
Peter Vicman 2015-10-10 13:55:17 +02:00
parent e2b6fefc94
commit c05ce15210

View File

@ -30,6 +30,7 @@ if [ -f "/storage/.kodi/addons/$1/system.d/$1.service" ] ; then
else
# disable = false: setup
systemctl enable "/storage/.kodi/addons/$1/system.d/$1.service"
chmod +x "/storage/.kodi/addons/$1/bin"/*
systemctl start "$1.service"
fi
fi