fixed paths

This commit is contained in:
homerr 2018-10-14 20:51:29 +01:00
parent 8cf0282e55
commit d0c2648b2b
2 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -41,3 +41,4 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk
docker-compose.yml

View File

@ -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