diff --git a/scripts/config.sh b/scripts/config.sh new file mode 100644 index 0000000..bf1ce4f --- /dev/null +++ b/scripts/config.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +HOST="chris@nose-pluto.local" +DEST="~/pluto" +NOSE_DIR="~/nose" \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 1781e8b..e96eac5 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,9 +5,7 @@ set -euo pipefail -HOST="chris@nose-pluto.local" -DEST="~/pluto" -NOSE_DIR="~/nose" +source config.sh SOCK="$HOME/.ssh/cm-%r@%h:%p" # 1) Open a master connection (prompts once) diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index feff3d5..3ecb619 100755 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -3,7 +3,6 @@ ## # setup your NOSEputer from your dev machine -HOST="chris@nose-pluto.local" -DEST="~/pluto" +source config.sh ssh $HOST "cd $DEST && ./scripts/install.sh && sudo systemctl start nose-pluto.service" \ No newline at end of file