Skip to content
Snippets Groups Projects
Commit 87b7fcba authored by alex-phillips's avatar alex-phillips
Browse files

added support for custom services.d

parent 8249d09c
No related branches found
No related tags found
No related merge requests found
...@@ -13,3 +13,17 @@ if [ -e "${SCRIPTS_DIR}" ] && \ ...@@ -13,3 +13,17 @@ if [ -e "${SCRIPTS_DIR}" ] && \
else else
echo "[custom-init] no custom scripts found exiting..." echo "[custom-init] no custom scripts found exiting..."
fi fi
# Make sure custom services directory exists and has files in it
SERVICES_DIR="/config/custom-services.d"
if [ -e "${SERVICES_DIR}" ] && \
[ -n "$(/bin/ls -A ${SERVICES_DIR} 2>/dev/null)" ]; then
echo "[custom-init] service folders found in ${SERVICES_DIR} executing"
for SERVICE in ${SERVICES_DIR}/*; do
echo "[custom-init] ${SERVICE}: copying..."
cp -r ${SERVICE} /etc/services.d/
echo "[custom-init] ${SERVICE}: done"
done
else
echo "[custom-init] no custom services found exiting..."
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment