Add auto downloading of files #4

Merged
Fascinated merged 13 commits from development into master 2023-07-12 13:45:19 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 1379ee5de5 - Show all commits

@ -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:rw # 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 (eg: avatar and background)

@ -14,7 +14,7 @@ if [ -z "$(ls -A $workDir/public)" ]; then
dir=$workDir/public/$item
if [ ! -e "$dir" ]; then
echo "Downloading $item to directory $dir"
wget -P $dir $baseUrl$item
wget -Pq $dir $baseUrl$item
echo "Done"
fi
done