diff options
Diffstat (limited to 'docker/start.sh')
-rwxr-xr-x | docker/start.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/start.sh b/docker/start.sh index e10feb20..b37acfe2 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -12,7 +12,7 @@ create_socat_links() { SERV_FOLDER=/app/gogs/docker/s6/SOCAT_${NAME}_${PORT} mkdir -p "${SERV_FOLDER}" CMD="socat -ls TCP4-LISTEN:${PORT},fork,reuseaddr TCP4:${ADDR}:${PORT}" - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3037 echo -e "#!/bin/sh\nexec $CMD" > "${SERV_FOLDER}"/run chmod +x "${SERV_FOLDER}"/run USED_PORT="${USED_PORT}:${PORT}" @@ -24,7 +24,7 @@ EOT } cleanup() { - # Cleanup SOCAT services and s6 event folder + # Cleanup SOCAT services and s6 event folder # On start and on shutdown in case container has been killed rm -rf "$(find /app/gogs/docker/s6/ -name 'event')" rm -rf /app/gogs/docker/s6/SOCAT_* @@ -67,7 +67,7 @@ if [ "$CROND" = "true" ] || [ "$CROND" = "1" ]; then rm -f /app/gogs/docker/s6/crond/down /bin/sh /app/gogs/docker/runtime/backup-init.sh "${PUID}" else - # Tell s6 not to run the crond service + # Tell s6 not to run the crond service touch /app/gogs/docker/s6/crond/down fi |