feat(madohomu): deploy script
This commit is contained in:
parent
90a6952fa4
commit
2ce15199d0
2 changed files with 9 additions and 2 deletions
9
hosts/madohomu/deploy.sh
Executable file
9
hosts/madohomu/deploy.sh
Executable 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
2
switch
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue