deploy: check current hostname before trying to deploy

This commit is contained in:
E. S. 2025-05-05 04:06:59 +03:00
parent 2f8ef8bd1a
commit bc87129e05

View File

@ -15,6 +15,8 @@ PROD_DIR="$HOME/www"
PHP="$(which php)"
REPO_URI=$(cat "$DEV_DIR/config.yaml" | grep ^git_repo | head -1 | awk '{print $2}')
[ "$(hostname)" = "4in1" ] || die "unexpected hostname. are you sure you're running it on the right machine?"
git push origin master
[ -d "$STAGING_DIR" ] || mkdir "$STAGING_DIR"