aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts/deploy.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-18 18:26:58 -0300
committerEuAndreh <eu@euandre.org>2024-08-18 18:26:58 -0300
commit5cabb11e012365096bea22bbb5014dd031537c42 (patch)
tree6b5b108fe996f6ae54f32b2fbcdc065b71baac55 /src/infrastructure/scripts/deploy.sh
parentsystem.scm: Use configuration from syskeep and upstream "packages" repository (diff)
downloadtoph-5cabb11e012365096bea22bbb5014dd031537c42.tar.gz
toph-5cabb11e012365096bea22bbb5014dd031537c42.tar.xz
rm -rf src/infrastructure/{ci,config,scripts}/
Diffstat (limited to 'src/infrastructure/scripts/deploy.sh')
-rwxr-xr-xsrc/infrastructure/scripts/deploy.sh72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/infrastructure/scripts/deploy.sh b/src/infrastructure/scripts/deploy.sh
deleted file mode 100755
index 7b3f0f4..0000000
--- a/src/infrastructure/scripts/deploy.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-set -eu
-
-usage() {
- cat <<-'EOF'
- Usage:
- deploy
- deploy -h
- EOF
-}
-
-help() {
- cat <<-'EOF'
-
-
- Options:
- -h, --help show this message
-
-
- Do a blue/green deployment of the relevant service. It makes
- sure that the new service is up and running before shutting
- down the old one.
-
-
- Examples:
-
- Just do the deploy:
-
- $ deploy
- EOF
-}
-
-
-for flag in "$@"; do
- case "$flag" in
- --)
- break
- ;;
- --help)
- usage
- help
- exit
- ;;
- *)
- ;;
- esac
-done
-
-while getopts 'h' flag; do
- case "$flag" in
- h)
- usage
- help
- exit
- ;;
- *)
- usage >&2
- exit 2
- ;;
- esac
-done
-shift $((OPTIND - 1))
-
-
-if [ "$(id -un)" != 'root' ]; then
- printf 'This script must be run as root.\n\n' >&2
- usage >&2
- exit 2
-fi
-
-
-: sudo herd restart a-service