fixed an error with path to volumes

This commit is contained in:
asus
2023-09-11 13:45:00 +02:00
parent 14a1ae7120
commit 0b78df0d5d
3 changed files with 86 additions and 19 deletions

View File

@@ -30,10 +30,24 @@ WP_USER_EMAIL=moehu36@42.fr
MAX_UPLOAD_SIZE=512
EXECUTION_TIME=300
# HOST (start with "HOST_VOLUME" for makefile)
# env file does not have expension capacity, so we simulate it with makefile :
# 1. the lines starting with EXPEND_ will be retrieved by the makefil
# 2. then it will expend the $HOME_PATH and $PWD_PATH
# 3. then it will remove the leading "EXPEND_" word
# 4. then it will erase all the line starting with "HOST_VOLUME_"
# 5. and finally it will add the expended lines after the line "EXPENDED LINES :"
HOST_VOLUME_WP=/home/lenovo/data/lejourduprof/wp_volume
HOST_VOLUME_DB=/home/lenovo/data/lejourduprof/db_volume
HOST_VOLUME_PLUGINS=/home/lenovo/42/lejourduprof/srcs/plugins
HOST_VOLUME_CERTS=/home/lenovo/42/lejourduprof/srcs/requirements/nginx/conf/ssl
EXPEND_HOST_VOLUME_WP=$HOME_PATH/data/lejourduprof/wp_volume
EXPEND_HOST_VOLUME_DB=$HOME_PATH/data/lejourduprof/db_volume
EXPEND_HOST_VOLUME_PLUGINS=$PWD_PATH/srcs/plugins
EXPEND_HOST_VOLUME_CERTS=$PWD_PATH/srcs/requirements/nginx/conf/ssl
# EXPENDED LINES :
HOST_VOLUME_CERTS=/home/asususus/Nextcloud/informatique/lejourduprof/srcs/requirements/nginx/conf/ssl
HOST_VOLUME_PLUGINS=/home/asususus/Nextcloud/informatique/lejourduprof/srcs/plugins
HOST_VOLUME_DB=/home/asususus/data/lejourduprof/db_volume
HOST_VOLUME_WP=/home/asususus/data/lejourduprof/wp_volume
#HOST_VOLUME_WP=/home/lenovo/data/lejourduprof/wp_volume
#HOST_VOLUME_DB=/home/lenovo/data/lejourduprof/db_volume
#HOST_VOLUME_PLUGINS=/home/lenovo/42/lejourduprof/srcs/plugins
#HOST_VOLUME_CERTS=/home/lenovo/42/lejourduprof/srcs/requirements/nginx/conf/ssl