aboutsummaryrefslogtreecommitdiffhomepage
path: root/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'entrypoint.sh')
-rw-r--r--entrypoint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/entrypoint.sh b/entrypoint.sh
index f1a8c22..9da2615 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -11,5 +11,11 @@ fi
11# Install default config if no one is available. 11# Install default config if no one is available.
12yes n | cp -i /www/default-assets/config.yml.dist /www/assets/config.yml &> /dev/null 12yes n | cp -i /www/default-assets/config.yml.dist /www/assets/config.yml &> /dev/null
13 13
14# Create symbolic link for hosting in subfolder.
15if [[ -n "${SUBFOLDER}" ]]; then
16 ln -s /www "/www/$SUBFOLDER"
17 chown -h $USER:$GROUP "/www/$SUBFOLDER"
18fi
19
14chown -R $UID:$GID /www/assets 20chown -R $UID:$GID /www/assets
15exec su-exec $UID:$GID darkhttpd /www/ --no-listing --port "$PORT" 21exec su-exec $UID:$GID darkhttpd /www/ --no-listing --port "$PORT"