re-added gestion for plugins volume outside folder
This commit is contained in:
@@ -12,7 +12,7 @@ SERVER_MAX_UPLOAD_SIZE=512
|
||||
# ----------------------------------------------------------------------
|
||||
# NGINX SETUP
|
||||
|
||||
NG_VOLUME_CERTS=/etc/ssl
|
||||
NG_CERTS_DIR=/etc/ssl
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
@@ -36,7 +36,7 @@ if [ ! ${WP_PORT} -eq 443 ]; then
|
||||
WP_COMPLETE_URL="${WP_URL}:${WP_PORT}"
|
||||
fi
|
||||
WP_VOLUME_DIR=/var/www/html
|
||||
#WP_VOLUME_PLUGINS=/home/www-data
|
||||
WP_VOLUME_PLUGINS=/home/www-data
|
||||
WP_TITLE=title
|
||||
WP_ADMIN=admin
|
||||
WP_ADMIN_PSWD="you shall not password !"
|
||||
@@ -73,10 +73,17 @@ WP_ADMIN_EMAIL=admin@email.fr
|
||||
# - because "~username" expand in the home (~) directory of given user
|
||||
# https://stackoverflow.com/questions/77088135/makefile-subst-doesnt-use-make-variable-as-expected
|
||||
HOST_HOME_PATH=$(eval echo "~$SUDO_USER")
|
||||
# path to the docker folder containing the srcs/ dir
|
||||
HOST_DOCKER_PATH=$(realpath ${DIR_PATH}/..)
|
||||
HOST_DOCKER_PARENT_PATH=$(realpath ${DIR_PATH}/../..)
|
||||
|
||||
# makefile will create the volumes folders
|
||||
# we put them inside a volumes/ dir, sibling to the srcs/ dir
|
||||
HOST_VOLUMES_DIR=$(realpath ${DIR_PATH}/../volumes)
|
||||
# there can be only one variable named "HOST_VOLUMES_DIR", or change the Makefile
|
||||
HOST_VOLUMES_DIR=${HOST_DOCKER_PATH}/volumes
|
||||
HOST_VOLUME_WP=${HOST_VOLUMES_DIR}/wp_volume
|
||||
HOST_VOLUME_DB=${HOST_VOLUMES_DIR}/db_volume
|
||||
# we put the plugin folder inside the parent folder of the docker dir
|
||||
HOST_VOLUME_PLUGINS=${HOST_DOCKER_PARENT_PATH}/plugins
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user