aboutsummaryrefslogtreecommitdiff
path: root/guix-container.sh
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-11-25 09:13:11 +0100
committerWojtek Kosior <koszko@koszko.org>2022-11-25 09:13:11 +0100
commitb7a8611707d393abd6857c8f7986f66a1ea906ab (patch)
treee6c56cfa503b3c78229bc5206370721dda77a25c /guix-container.sh
parent28ba79385cd1b80a99629d35bd535adc5f817497 (diff)
downloadkoszko-org-server-b7a8611707d393abd6857c8f7986f66a1ea906ab.tar.gz
koszko-org-server-b7a8611707d393abd6857c8f7986f66a1ea906ab.zip
add hydrilla.koszko.org virtualhost
Diffstat (limited to 'guix-container.sh')
-rwxr-xr-xguix-container.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix-container.sh b/guix-container.sh
index afede73..3167ac7 100755
--- a/guix-container.sh
+++ b/guix-container.sh
@@ -84,10 +84,12 @@ start() {
KOSZKO_SIDELOAD_REAL="$HOST_SYSTEM_ROOT"/var/www/koszko.org/html
LOG_REAL="$LOG_DIR"/container
ETC_REAL="$HOST_SYSTEM_ROOT"/etc/guix-container
+ VAR_HYDRILLA_REAL="$HOST_SYSTEM_ROOT"/var/lib/hydrilla
HTTP_DIR_SHARE_OPT=--share="$KOSZKO_SIDELOAD_REAL"=/srv/http/koszko.org
LOG_DIR_SHARE_OPT=--share="$LOG_REAL"=/var/log
ETC_DIR_SHARE_OPT=--share="$ETC_REAL"=/etc
+ VAR_HYDRILLA_DIR_SHARE_OPT=--share="$VAR_HYDRILLA_REAL"=/var/lib/hydrilla
mkdir --mode=700 -p "$LOG_DIR"
mkdir --mode=700 -p "$LOG_DIR"/container
@@ -95,6 +97,7 @@ start() {
"$EXECUTABLE" "$HTTP_DIR_SHARE_OPT" \
"$LOG_DIR_SHARE_OPT" \
"$ETC_DIR_SHARE_OPT" \
+ "$VAR_HYDRILLA_DIR_SHARE_OPT" \
>> "$LOG_DIR"/stdout.log 2>> "$LOG_DIR"/stderr.log &
GUILE_PID=$!