diff options
Diffstat (limited to 'guix-container.sh')
-rwxr-xr-x | guix-container.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/guix-container.sh b/guix-container.sh index 2430d8a..9218a54 100755 --- a/guix-container.sh +++ b/guix-container.sh @@ -81,14 +81,17 @@ onexit() { start() { KOSZKO_SIDELOAD_REAL=/var/www/koszko.org/html KOSZKO_SIDELOAD_INSIDE=/srv/http/koszko.org + LOG_REAL="$LOG_DIR"/container + LOG_INSIDE=/var/log HTTP_DIR_SHARE_OPT=--share="$KOSZKO_SIDELOAD_REAL"="$KOSZKO_SIDELOAD_INSIDE" + LOG_DIR_SHARE_OPT=--share="$LOG_REAL"="$LOG_INSIDE" mkdir -p "$(dirname "$LOG_DIR")" mkdir --mode=700 -p "$LOG_DIR" + mkdir --mode=700 -p "$LOG_DIR"/container - "$EXECUTABLE" $HTTP_DIR_SHARE_OPT \ - >> "$LOG_DIR"/stdout.log \ - 2>> "$LOG_DIR"/stderr.log & + "$EXECUTABLE" "$HTTP_DIR_SHARE_OPT" "$LOG_DIR_SHARE_OPT" \ + >> "$LOG_DIR"/stdout.log 2>> "$LOG_DIR"/stderr.log & GUILE_PID=$! WAIT_TIME=0 |