#!/bin/sh # Default configurations: DEPLOY_HELPER_CONTENT_DIR="website/output" if test -f .deployment-helper then # shellcheck source=/dev/null . .deployment-helper fi if ! test -d "${DEPLOY_HELPER_CONTENT_DIR}" then echo "Website-Build not found" exit 1 fi echo "SSH_USER=${SSH_USER}" echo "SSH_HOST=${SSH_HOST}" if [ -n "$LFTP_PASSWORD" ] then echo "Password for Deployment found" fi lftp -e "set sftp:auto-confirm yes; mirror -R ${DEPLOY_HELPER_CONTENT_DIR} ./web/; bye" \ --env-password \ -u ${SSH_USER} \ sftp://${SSH_HOST}