Compare commits

...

2 Commits

Author SHA1 Message Date
0dd750a115 fix if statement
All checks were successful
Publish Docker Image / docker (push) Successful in 1m22s
2023-07-12 14:20:53 +01:00
98b7ad12cc enable public directory by default 2023-07-12 14:18:43 +01:00
2 changed files with 2 additions and 1 deletions

@ -14,4 +14,4 @@ services:
- 3000:3000
volumes:
- ./config.json:/usr/src/app/config.json:ro # The application config (Must be created before starting the service)
#- ./public:/usr/src/app/public:ro # Used for public facing images (uncomment if you are using your own images - see the public directory)
- ./public:/usr/src/app/public:rw # Used for public facing images (uncomment if you are using your own images - see the public directory)

@ -8,6 +8,7 @@ if [ -z "$(ls -A $workDir/public)" ]; then
echo "Some files are missing, downloading them"
if [ ! -w "$workDir" ]; then
echo "The directory \"$workDir\" is not writeable, unable to download files. Please check your docker compose for :ro and set it to :rw"
fi
for item in "${toDownload[@]}"
do
dir=$workDir/public/$item