feat(madohomu): deploy script

This commit is contained in:
alina 🌸 2024-06-08 23:41:28 +03:00
parent 90a6952fa4
commit 2ce15199d0
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 9 additions and 2 deletions

9
hosts/madohomu/deploy.sh Executable file
View file

@ -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

2
switch
View file

@ -37,8 +37,6 @@ function log_then_run {
$@ $@
} }
echo $args
function on_exit { function on_exit {
git restore --staged secrets/unsafe.key git restore --staged secrets/unsafe.key
if [ $(hostname) == "teidesu-osx" ]; then if [ $(hostname) == "teidesu-osx" ]; then