split setup.sh into bootstrap.sh and configure.sh
Provision server / provision (push) Failing after 2s
Provision server / provision (push) Failing after 2s
bootstrap.sh handles first-time setup (manual, Bitwarden). configure.sh handles idempotent config (CI-safe). Add provision workflow, deploy-garage workflow, new-service.sh. Remove git-crypt references and empty .gitattributes.
This commit is contained in:
@@ -32,6 +32,13 @@ NGINXCONF
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$CMD" = "provision" ]; then
|
||||
cd /opt/hantim
|
||||
git pull
|
||||
bash scripts/configure.sh
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! [[ "$CMD" =~ ^deploy-[a-zA-Z0-9._-]+$ ]]; then
|
||||
echo "Unknown command: $CMD"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user