diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8cf05d5..faeb632 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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 diff --git a/docker/envole.sh b/docker/envole.sh index 5c8598e..c7e668b 100755 --- a/docker/envole.sh +++ b/docker/envole.sh @@ -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 } diff --git a/misc/wordpress/containers/wordpress/entrypoint.sh b/misc/wordpress/containers/wordpress/entrypoint.sh index d80d552..bfcdb29 100755 --- a/misc/wordpress/containers/wordpress/entrypoint.sh +++ b/misc/wordpress/containers/wordpress/entrypoint.sh @@ -62,21 +62,23 @@ 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 wp plugin update --allow-root --all -wp language core update +wp language core update wp language theme update --all wp language plugin update --all diff --git a/misc/wordpress/docker-compose.yml b/misc/wordpress/docker-compose.yml index d74d4b4..45a0ce5 100755 --- a/misc/wordpress/docker-compose.yml +++ b/misc/wordpress/docker-compose.yml @@ -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