From bc87129e0558f59ba280f08f42a812ad7df85021 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Mon, 5 May 2025 04:06:59 +0300 Subject: [PATCH] deploy: check current hostname before trying to deploy --- deploy/deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index a0dc966..6157386 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -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"