pb wordpress

This commit is contained in:
afornerot 2024-03-13 19:13:53 +01:00
parent eae3fc7bdc
commit f5930cf215
4 changed files with 14 additions and 11 deletions

View File

@ -129,7 +129,7 @@ services:
ports: ports:
- "9003:80" - "9003:80"
volumes: volumes:
- ./volume/wordpress/data:/app/public - ./volume/wordpress/data:/app/public/wp-content
adminer: adminer:
image: docker.io/library/adminer image: docker.io/library/adminer

View File

@ -475,6 +475,7 @@ destroy(){
if [[ "$?" = 0 || -z $2 ]] if [[ "$?" = 0 || -z $2 ]]
then then
$PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/delete.sh $WORDPRESS_SERVICE_NAME $PODCOMPOSEBIN exec $MARIADB_SERVICE_NAME /envole/delete.sh $WORDPRESS_SERVICE_NAME
sudo rm -rf volume/wordpress/data
fi fi
fi fi
} }

View File

@ -62,16 +62,18 @@ wp core multisite-install \
--skip-email --skip-email
# Switch language # Switch language
echo "== Switch languange"
wp language core install fr_FR
wp site switch-language fr_FR wp site switch-language fr_FR
# Install plugin # Install plugin
if [[ "${MODE_AUTH}" == "CAS" && "${CAS_ACTIVATE}" == "1" ]] #if [[ "${MODE_AUTH}" == "CAS" && "${CAS_ACTIVATE}" == "1" ]]
then #then
wp plugin install wp-cassify # wp plugin install wp-cassify
wp plugin activate wp-cassify --network # wp plugin activate wp-cassify --network
else #else
wp plugin delete wp-cassify # wp plugin delete wp-cassify
fi #fi
# Mise à jour theme / plugin / network # Mise à jour theme / plugin / network
wp theme update --allow-root --all wp theme update --allow-root --all

View File

@ -38,8 +38,8 @@ services:
- WORDPRESS_DOMAINE=eolebase.ac-test.fr - WORDPRESS_DOMAINE=eolebase.ac-test.fr
- WORDPRESS_ALIAS=/wordpress/ - WORDPRESS_ALIAS=/wordpress/
volumes: #volumes:
- ./containers/data:/app/public/wp-content/plugins/wp-cas # - ./containers/data:/app/public/wp-content/plugins/wp-cas
adminer: adminer:
image: docker.io/library/adminer image: docker.io/library/adminer