added update script

This commit is contained in:
John Lancaster
2024-06-15 17:15:57 -05:00
parent 4014c60148
commit dbdc088ca0
3 changed files with 14 additions and 2 deletions

12
update.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -e
REPO_DIR=$(dirname $(readlink -f $BASH_SOURCE[0]))
alias compose="compose -f $REPO_DIR/docker-compose.yml"
cd $REPO_DIR
git submodule update --remote
docker compose pull --ignore-pull-failures
docker compose up -d --build --force-recreate
docker compose rm -f