Skip to content

Commit 79c81a1

Browse files
committed
symlink updates
1 parent edfa7b4 commit 79c81a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

root/etc/cont-init.d/50-config

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ mkdir -p \
1111
[[ ! -L /var/www/html/public/uploads ]] && \
1212
ln -sf /config/uploads /var/www/html/public/uploads
1313
[[ ! -L /var/www/html/.env ]] && \
14-
ln -sf /config/env /var/www/html/.env
14+
ln -sf /config/.env /var/www/html/.env
15+
16+
for i in "${symlinks[@]}"
17+
do
18+
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"
19+
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
20+
done
1521

1622
# Create API key if needed
1723
if [ ! -f "/config/BOOKSTACK_APP_KEY.txt" ]

0 commit comments

Comments
 (0)