diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-10 01:41:11 -0700 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-10 01:41:11 -0700 |
commit | b74bd67a4a25076812e86e7989a63b9540e68b25 (patch) | |
tree | 39824a177b8e3b4d25123392427442f6a3d4add1 /deploy.sh | |
parent | 11155128178ff3d8ea803a70dd7749e594b247a9 (diff) | |
download | tilde.club-b74bd67a4a25076812e86e7989a63b9540e68b25.tar.gz tilde.club-b74bd67a4a25076812e86e7989a63b9540e68b25.zip |
attempt systemd deployment
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,10 +1,12 @@ -#!/bin/sh +#!/bin/bash set -e echo $SSH_KEY | base64 -d >> /tmp/key chmod -R 0600 /tmp/key +rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz --delete ./systemd/ $RSYNC_DESTINATION/.config/systemd/user/ + cd dist for item in *; do echo "copying $item" @@ -20,4 +22,7 @@ done cd .. echo "finished copying to remote host..." +ssh -i /tmp/key -o StrictHostKeyChecking=no $(echo "${$RSYNC_DESTINATION%%:*}") "systemctl daemon reload --user && systemctl restart --user fruitvote" +echo "reloading fruitvote..." + rm /tmp/key |