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.

mount-remote.sh 348B

1234567891011121314151617181920
  1. #! /bin/sh
  2. #
  3. set -a
  4. . "${PWD}/.env"
  5. . "${PWD}/env_files/remote.env"
  6. set +a
  7. mkdir -p "${PWD}/webroot-remote"
  8. if [ ! "${REMOTE_SSH_STRING}" = "" ]; then
  9. sshfs \
  10. "${REMOTE_SSH_STRING}:${REMOTE_WP_PATH}" \
  11. "${PWD}/webroot-remote" \
  12. -o ro
  13. ls "${PWD}/webroot-remote"
  14. else
  15. echo "REMOTE_SSH_STRING is empty in ${PWD}/.env"
  16. exit 1
  17. fi