pb wordpress
This commit is contained in:
parent
eae3fc7bdc
commit
f5930cf215
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue