Update service
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-19 08:53:59 +00:00
parent b4f570ee8f
commit 993169b248

26
service
View File

@@ -19,29 +19,7 @@ touch $HOST_FILE;
VOLUME_MOUNTS=""; VOLUME_MOUNTS="";
if [ -d /etc/user/data ]; then VOLUME_MOUNTS="-v SYSTEM_DATA:/etc/system/data -v SYSTEM_CONFIG:/etc/system/config -v SYSTEM_LOG:/etc/system/log -v USER_DATA:/etc/user/data -v USER_CONFIG:/etc/user/config -v USER_SECRET:/etc/user/secret"
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/user/data:/etc/user/data"
fi
if [ -d /etc/user/config ]; then
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/user/config:/etc/user/config"
fi
if [ -d /etc/user/secret ]; then
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/user/secret:/etc/user/secret"
fi
if [ -d /etc/system/data ]; then
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/system/data:/etc/system/data"
fi
if [ -d /etc/system/config ]; then
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/system/config:/etc/system/config"
fi
if [ -d /etc/system/log ]; then
VOLUME_MOUNTS=$VOLUME_MOUNTS" -v /etc/system/log:/etc/system/log"
fi
CA_PATH=/etc/system/data/ssl/certs CA_PATH=/etc/system/data/ssl/certs
CA="--env CA_PATH=$CA_PATH" CA="--env CA_PATH=$CA_PATH"
@@ -60,4 +38,4 @@ $VOLUME_MOUNTS \
--env HOST_FILE=$HOST_FILE \ --env HOST_FILE=$HOST_FILE \
$DOCKER_REGISTRY_URL$SETUP:$SETUP_VERSION" $DOCKER_REGISTRY_URL$SETUP:$SETUP_VERSION"
$service_exec $SERVICE_FILE start $service_exec $SERVICE_FILE start info