Files
wp-docker-setup/mount-remote.sh
Jean-Christophe Vanhalle b47876ad62 rewrites the whole thing
2023-08-14 14:48:47 +02:00

21 lines
348 B
Bash
Executable File

#! /bin/sh
#
set -a
. "${PWD}/.env"
. "${PWD}/env_files/remote.env"
set +a
mkdir -p "${PWD}/webroot-remote"
if [ ! "${REMOTE_SSH_STRING}" = "" ]; then
sshfs \
"${REMOTE_SSH_STRING}:${REMOTE_WP_PATH}" \
"${PWD}/webroot-remote" \
-o ro
ls "${PWD}/webroot-remote"
else
echo "REMOTE_SSH_STRING is empty in ${PWD}/.env"
exit 1
fi