disabled hostkey check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-05-27 10:21:33 +02:00
parent c72a1f81ce
commit 9c3764c7ff

View File

@@ -62,14 +62,14 @@ echo "uploading"
if [ "$USE_SFTP" -eq 1 ]; then if [ "$USE_SFTP" -eq 1 ]; then
echo "use sftp" echo "use sftp"
cd ~/ cd ~/
sshpass -e sftp -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << ! sshpass -e sftp -oStrictHostKeyChecking=no -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
cd ${SFTP_PATH} cd ${SFTP_PATH}
put ${BACKUP_FILENAME}.gpg put ${BACKUP_FILENAME}.gpg
bye bye
! !
if [ "$month_day" -eq 1 ] ; then if [ "$month_day" -eq 1 ] ; then
echo "make monthly backup" echo "make monthly backup"
sshpass -e sftp -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << ! sshpass -e sftp -oStrictHostKeyChecking=no -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
cd ${SFTP_PATH} cd ${SFTP_PATH}
cp ${BACKUP_FILENAME}.gpg ${BACKUP_FILENAME_MONTHLY}.gpg cp ${BACKUP_FILENAME}.gpg ${BACKUP_FILENAME_MONTHLY}.gpg
bye bye