rewrites the whole thing

This commit is contained in:
Jean-Christophe Vanhalle
2023-08-14 14:48:47 +02:00
parent 222d86a909
commit b47876ad62
19 changed files with 407 additions and 139 deletions

20
mount-remote.sh Executable file
View File

@@ -0,0 +1,20 @@
#! /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