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:
- "9003:80"
volumes:
- ./volume/wordpress/data:/app/public
- ./volume/wordpress/data:/app/public/wp-content
adminer:
image: docker.io/library/adminer

View File

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

View File

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

View File

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