From 310e8f275976f22277f225282087c3f5feda0e4f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 27 May 2019 23:18:28 -0300 Subject: 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. --- deploy.sh | 1 + 1 file changed, 1 insertion(+) 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." -- cgit v1.2.3