Add note if no custom services found

This commit is contained in:
TheSpad 2022-09-05 17:14:17 +01:00
parent 82d4508817
commit 261c0b7c50
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -86,6 +86,8 @@ process_custom_services() {
echo "[custom-init] ${NAME}: is not a file" echo "[custom-init] ${NAME}: is not a file"
fi fi
done done
else
echo "[custom-init] No custom services found, skipping..."
fi fi
# Remove legacy folder if it's empty # Remove legacy folder if it's empty
@ -122,7 +124,12 @@ process_custom_services_legacy() {
echo "[custom-init] ${NAME}: is not a file" echo "[custom-init] ${NAME}: is not a file"
fi fi
done done
elif [[ -e "${SERVICES_DIR_OLD}" ]] && [[ -z "$(/bin/ls -A ${SERVICES_DIR_OLD} 2>/dev/null)" ]]; then else
echo "[custom-init] No custom services found, skipping..."
fi
# Remove legacy folder if it's empty
if [[ -e "${SERVICES_DIR_OLD}" ]] && [[ -z "$(/bin/ls -A ${SERVICES_DIR_OLD} 2>/dev/null)" ]]; then
echo "[custom-init] Legacy service folder ${SERVICES_DIR_OLD} is empty, deleting..." echo "[custom-init] Legacy service folder ${SERVICES_DIR_OLD} is empty, deleting..."
rm -rf "${SERVICES_DIR_OLD}" rm -rf "${SERVICES_DIR_OLD}"
fi fi