Skip to content

Commit

Permalink
Try something for #382
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life committed Dec 12, 2024
1 parent fc0089a commit 27d8376
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion support/cbiit-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ docker compose --project-name edrn exec db dropdb --force --if-exists --username
docker compose --project-name edrn exec db createdb --username=postgres --encoding=UTF8 --owner=postgres edrn" || exit 1

ssh -q $USER@$WEBSERVER "cd $WEBROOT ; \
pwd && ls && [ -f edrn.sql.bz2 ] &&\
pwd && ls -l && [ -f edrn.sql.bz2 ] &&\
bzip2 --decompress --stdout edrn.sql.bz2 | \
docker compose --project-name edrn exec --no-TTY db psql --username=postgres --dbname=edrn --echo-errors --quiet" || exit 1

exit 128

echo ""
echo "📀 Initial database setup"
ssh -q $USER@$WEBSERVER "cd $WEBROOT ; \
Expand Down

0 comments on commit 27d8376

Please sign in to comment.