Remove custom svc from user bundle

This commit is contained in:
TheSpad 2022-09-13 11:01:41 +01:00
parent 2ff83b7d5e
commit 68bbac5106
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -110,6 +110,7 @@ process_custom_services_legacy() {
if [[ -n "$(/bin/ls -A /etc/s6-overlay/s6-rc.d/custom-svc-* 2>/dev/null)" ]]; then
echo "[custom-init] removing existing custom services..."
rm -rf /etc/s6-overlay/s6-rc.d/custom-svc-*
rm /etc/s6-overlay/s6-rc.d/user/contents.d/custom-svc-*
fi
# Make sure custom service directory exists and has files in it