mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
fixed paths
This commit is contained in:
parent
8cf0282e55
commit
d0c2648b2b
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,3 +41,4 @@ $RECYCLE.BIN/
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
docker-compose.yml
|
||||
|
||||
@ -2,17 +2,19 @@
|
||||
|
||||
# create directory structure
|
||||
mkdir -p \
|
||||
/config/www/{html,uploads,files,images}
|
||||
/config/www/{uploads,files,images}
|
||||
|
||||
# check for .env and copy default if needed
|
||||
[[ ! -f "/config/.env" ]] && \
|
||||
cp /var/www/html/.env.example /config/www/html/.env
|
||||
[[ ! -f "/config/www/.env" ]] && \
|
||||
cp /var/www/html/.env.example /config/www/.env
|
||||
|
||||
# create symlinks
|
||||
symlinks=( \
|
||||
/var/www/html/storage/uploads/files \
|
||||
/var/www/html/storage/uploads/images \
|
||||
/var/www/html/public/uploads )
|
||||
/var/www/html/public/uploads \
|
||||
/var/www/html/.env
|
||||
)
|
||||
|
||||
for i in "${symlinks[@]}"
|
||||
do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user