Add note if no custom services found
This commit is contained in:
parent
82d4508817
commit
261c0b7c50
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue