aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-27 23:18:28 -0300
committerEuAndreh <eu@euandre.org>2019-05-27 23:18:28 -0300
commit310e8f275976f22277f225282087c3f5feda0e4f (patch)
tree2eb39e799a4c20fe7467b4bbb88c48590b4e8a26
parentUse ssh pipe and cat instead of hacky temporary file descriptor (diff)
downloadtoph-310e8f275976f22277f225282087c3f5feda0e4f.tar.gz
toph-310e8f275976f22277f225282087c3f5feda0e4f.tar.xz
Add cd to /home/vps/ in profile
Just a nice to have when SSH'ing interactively, doesn't have and effect on non-interactive SSH commands.
-rwxr-xr-xdeploy.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 485c03d..5a37541 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -30,6 +30,7 @@ echo "Done."
echo "Copy over files..."
ssh "$TLD" mkdir -p /home/vps/
+ssh "$TLD" 'grep /home/vps/ /root/.profile || echo "cd /home/vps/" >> /root/.profile'
scp bash_aliases.sh "$TLD":/root/.bash_aliases
envsubst < docker-compose.yaml | ssh "$TLD" 'cat > /home/vps/docker-compose.yaml'
echo "Done."