Fix service file types

This commit is contained in:
TheSpad 2022-06-10 16:31:30 +01:00
parent 1dabda8b62
commit c285069d03
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -174,8 +174,7 @@ if { [ -e "${SERVICES_DIR}" ] && [ -n "$(/bin/ls -A ${SERVICES_DIR} 2>/dev/null)
mkdir -p /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/ mkdir -p /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/
cp "${SERVICE}" /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/run cp "${SERVICE}" /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/run
chmod +x /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/run chmod +x /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/run
echo "oneshot" > /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/type echo "longrun" > /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/type
echo "/etc/s6-overlay/s6-rc.d/custom-svc-${NAME}/run" > /etc/s6-overlay/s6-rc.d/custom-svc-"${NAME}"/up
echo "[custom-init] ${NAME}: copied" echo "[custom-init] ${NAME}: copied"
elif [ ! -f "${SERVICE}" ]; then elif [ ! -f "${SERVICE}" ]; then
echo "[custom-init] ${NAME}: is not a file" echo "[custom-init] ${NAME}: is not a file"