Add global production install and update commands
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
INSTALL_DIR="${INSTALL_DIR:-/opt/SeConectai_Condominios}"
|
||||
BRANCH="${BRANCH:-main}"
|
||||
|
||||
if [[ ! -d "$INSTALL_DIR/.git" ]]; then
|
||||
echo "Erro: repositorio nao encontrado em $INSTALL_DIR. Rode primeiro: seconectaicondominio.install SENHA_MASTER_INICIAL"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$INSTALL_DIR"
|
||||
BRANCH="$BRANCH" ./scripts/update-prod.sh
|
||||
Reference in New Issue
Block a user