You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 line
351 B

  1. #!/bin/bash
  2. echo "Usage: ./send_archive.sh [USER@HOSTNAME] [SSH_PORT]"
  3. HOST="${1:-admin@lesspass.com}"
  4. SSH_PORT="${2:-22}"
  5. ssh -p $SSH_PORT $HOST 'mkdir -p ~/lesspass'
  6. scp -P $SSH_PORT docker-compose.prod.yml "$HOST":~/
  7. scp -P $SSH_PORT deploy.sh "$HOST":~/lesspass
  8. ssh -p $SSH_PORT $HOST 'mv docker-compose.prod.yml ~/lesspass/docker-compose.yml'