summaryrefslogtreecommitdiff
path: root/src/scripts/deploy.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-17 18:44:59 -0300
committerEuAndreh <eu@euandre.org>2024-08-18 08:07:09 -0300
commita7dcb8ed92a6f0ccfbced8422f916fd6d9b1c781 (patch)
tree6594fafbe9f805f41763603774fc7f7b9a0ffcee /src/scripts/deploy.sh
parentsrc/guix/packages.scm: Inherit package definitions from upstream channel (diff)
downloadasami-a7dcb8ed92a6f0ccfbced8422f916fd6d9b1c781.tar.gz
asami-a7dcb8ed92a6f0ccfbced8422f916fd6d9b1c781.tar.xz
Offload common server code to dedicated packages
Diffstat (limited to 'src/scripts/deploy.sh')
-rwxr-xr-xsrc/scripts/deploy.sh72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/scripts/deploy.sh b/src/scripts/deploy.sh
deleted file mode 100755
index dc30484..0000000
--- a/src/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 main 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
-
-
-echo FIXME