-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file storage path permissions and apply image updates (#439)
* Applies fix for zammad/zammad#5412
- Loading branch information
Showing
4 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,12 @@ set -o pipefail | |
|
||
docker compose logs --timestamps --follow & | ||
|
||
until (curl -I --silent --fail localhost:8080 | grep -iq "HTTP/1.1 200 OK"); do | ||
echo "wait for zammad to be ready..." | ||
sleep 5 | ||
done | ||
echo | ||
echo "wait for zammad to be ready..." | ||
echo | ||
|
||
docker compose wait zammad-init | ||
curl --retry 30 --retry-delay 1 --retry-connrefused http://localhost:8080 | grep "Zammad" | ||
|
||
echo | ||
echo "Success - Zammad is up :)" | ||
|
@@ -21,18 +23,17 @@ echo | |
echo "Execute autowizard..." | ||
echo | ||
|
||
docker exec --env=AUTOWIZARD_RELATIVE_PATH=tmp/auto_wizard.json --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rake zammad:setup:auto_wizard | ||
docker compose exec --env=AUTOWIZARD_RELATIVE_PATH=tmp/auto_wizard.json --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-railsserver bundle exec rake zammad:setup:auto_wizard | ||
|
||
echo | ||
echo "Autowizard executed successful :)" | ||
echo | ||
|
||
|
||
echo | ||
echo "Check DB for AutoWizard user" | ||
echo | ||
|
||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rails r "p User.find_by(email: '[email protected]')" | grep '[email protected]' | ||
docker compose exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-railsserver bundle exec rails r "p User.find_by(email: '[email protected]')" | grep '[email protected]' | ||
|
||
echo | ||
echo "Check DB for AutoWizard user successfull :)" | ||
|
@@ -42,8 +43,18 @@ echo | |
echo "Fill DB with some random data" | ||
echo | ||
|
||
docker exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-docker-compose-zammad-railsserver-1 bundle exec rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)" | ||
docker compose exec --env=DATABASE_URL=postgres://zammad:zammad@zammad-postgresql:5432/zammad_production zammad-railsserver bundle exec rails r "FillDb.load(agents: 1,customers: 1,groups: 1,organizations: 1,overviews: 1,tickets: 1)" | ||
|
||
echo | ||
echo "DB fill successful :)" | ||
echo | ||
|
||
echo | ||
echo "Check if the Zammad user can write to FS storage" | ||
echo | ||
|
||
docker compose exec zammad-railsserver touch storage/test.txt | ||
|
||
echo | ||
echo "Storage write successful :)" | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters