diff --git a/Dockerfile b/Dockerfile index 91ecd89..e7ba0f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,7 @@ ENV SHELL="/bin/bash" \ COPY --from=build /. / -WORKDIR /root +WORKDIR /data VOLUME [ "/config","/data" ] diff --git a/bin/entrypoint-bun.sh b/bin/entrypoint-bun.sh index 2858459..9730364 100755 --- a/bin/entrypoint-bun.sh +++ b/bin/entrypoint-bun.sh @@ -118,16 +118,6 @@ if [ ! -e "/config/$APPNAME" ] && [ -e "$DEFAULT_CONF_DIR/$APPNAME" ]; then cp -Rf "$DEFAULT_CONF_DIR/$APPNAME" "/config/$APPNAME" fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Create config symlinks -for conf in /config/*; do - if [ -e "/etc/$conf" ]; then - if [ ! -d "/config/bin" ]; then - rm -Rf "/etc/${conf:?}" - ln -sf "/config/$conf" "/etc/$conf" - fi - fi -done -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Setup bun mkdir -p "/data" && cd "/data" || exit 10 if [ -z "$1" ] && [ -z "$(ls -A "/app"/* 2>/dev/null)" ]; then