#!/usr/bin/env bash set -e # Get absolute path of this script’s directory SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" ROOT_DIR="$SCRIPT_DIR/../.." # Run deploy + config with absolute paths source "$ROOT_DIR/app/scripts/deploy.sh" source "$ROOT_DIR/app/scripts/config.sh" # Run remote install on the target ssh "$HOST" "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"