docker-vscode-server/root/init-hook
2023-05-10 23:43:36 +02:00

11 lines
287 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [[ ${RUN_MODE} == "web" ]]; then
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-vscode-server
elif [[ ${RUN_MODE} == "server" ]]; then
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-vscode-server-web
fi
exec /docker-mods