From 2ce15199d00f638d45c87a7284165488b382c0dd Mon Sep 17 00:00:00 2001 From: teidesu Date: Sat, 8 Jun 2024 23:41:28 +0300 Subject: [PATCH] feat(madohomu): deploy script --- hosts/madohomu/deploy.sh | 9 +++++++++ switch | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 hosts/madohomu/deploy.sh diff --git a/hosts/madohomu/deploy.sh b/hosts/madohomu/deploy.sh new file mode 100755 index 0000000..ff102e7 --- /dev/null +++ b/hosts/madohomu/deploy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -eau + +SCRIPT=$(realpath "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + +$SCRIPTPATH/../../switch --remote root@madoka .#madoka +$SCRIPTPATH/../../switch --remote root@homura .#homura \ No newline at end of file diff --git a/switch b/switch index 4f93193..35fbfd5 100755 --- a/switch +++ b/switch @@ -37,8 +37,6 @@ function log_then_run { $@ } -echo $args - function on_exit { git restore --staged secrets/unsafe.key if [ $(hostname) == "teidesu-osx" ]; then