Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion syncdb
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ download_remote_db () {

set -o pipefail

scp -q "$scp_port"$r_user@$r_host:~/$r_web_dir/$r_bak_dir/${r_bak_name2}.bz2 .
scp -q $scp_port$r_user@$r_host:~/$r_web_dir/$r_bak_dir/${r_bak_name2}.bz2 .

if [ $? == 0 -a -f ${r_bak_name2}.bz2 ]; then
echo
Expand Down Expand Up @@ -1443,6 +1443,21 @@ then
help
fi

# check for extra runtime arguments
for i in "${@:2}"
do
case $i in
# disable ssh strict host key checking
-u|--unsecure)
ssh_port+="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "
scp_port+="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "
;;
*)
# unknown option
;;
esac
done

fi

# script will execute whichever method is passed to it as an argument.
Expand Down