From 2f130874f761819c870a3edb08cfd0090135a84d Mon Sep 17 00:00:00 2001 From: Aleksander Wasaznik Date: Mon, 6 Feb 2017 20:20:25 +0100 Subject: [PATCH] Update deploy to match new systemd setup Grezgorz now runs as a service on the user instance of systemd. --- deploy.bash | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy.bash b/deploy.bash index ec36215..ab0331d 100755 --- a/deploy.bash +++ b/deploy.bash @@ -2,23 +2,23 @@ # My little crappy deploy script # Uploads all files not ignored by git -TARGET=brzeczyszczykiewicz.pvv.ntnu.no +TARGET=grzegorz@brzeczyszczykiewicz.pvv.ntnu.no TARGET_PATH='grzegorz' array=(); while IFS= read -rd '' item; do array+=("$item"); done < \ <(git status -z --short | grep -z ^? | cut -z -d\ -f2-; git ls-files -z) files_not_ignored=("${array[@]}") -ssh -T "grzegorz@$TARGET" " +ssh -T "$TARGET" " rm -rf $TARGET_PATH mkdir -p $TARGET_PATH " tar -c "${files_not_ignored[@]}" | - ssh -T "grzegorz@$TARGET" " + ssh -T "$TARGET" " tar -vxC $TARGET_PATH " -ssh -T "root@$TARGET" " - systemctl restart grzegorz - systemctl status grzegorz + +ssh -T "$TARGET" " + systemctl --user restart grzegorz@0 "