10 lines
229 B
Bash
Executable File
10 lines
229 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir -p $HOME/.ssh
|
|
ssh-keyscan -t rsa $DEPLOY_HOST >> $HOME/.ssh/known_hosts
|
|
|
|
sshpass -p "$DEPLOY_PASSWORD" \
|
|
rsync -avzr -e \
|
|
ssh -o "StrictHostKeyChecking no" ./public \
|
|
$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|