diff options
author | EuAndreh <eu@euandre.org> | 2019-05-27 23:18:28 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-27 23:18:28 -0300 |
commit | 310e8f275976f22277f225282087c3f5feda0e4f (patch) | |
tree | 2eb39e799a4c20fe7467b4bbb88c48590b4e8a26 | |
parent | Use ssh pipe and cat instead of hacky temporary file descriptor (diff) | |
download | server-310e8f275976f22277f225282087c3f5feda0e4f.tar.gz server-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-x | deploy.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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." |