fix(dd-ctl): mu-plugins with git
parent
c9d643b442
commit
0e9e54e639
10
dd-ctl
10
dd-ctl
|
@ -407,11 +407,15 @@ upgrade_plugins_nextcloud(){
|
|||
}
|
||||
|
||||
upgrade_plugins_wp(){
|
||||
## MU-PLUGINS WP
|
||||
if [ ! -d $SRC_FOLDER/wordpress/wp-content/mu-plugins ]; then
|
||||
git clone https://gitlab.com/muplugins-multiste1/muplugins-google-sites $SRC_FOLDER/wordpress/wp-content/mu-plugins
|
||||
git clone https://gitlab.com/muplugins-multiste1/muplugins-google-sites.git $SRC_FOLDER/wordpress/wp-content/mu-plugins
|
||||
fi
|
||||
if [ ! -d $SRC_FOLDER/wordpress/wp-content/mu-plugins/.git ]; then
|
||||
echo "WARNING: /opt/digitaldemocratic/src/wordpress/wp-content/mu-plugins is not a git repository."
|
||||
echo " This could be due to old installation. To bring all new mu-plugins code for WP"
|
||||
echo " remove that folder and it will be cloned and mantained with git from now on."
|
||||
else
|
||||
git pull $SRC_FOLDER/wordpress/wp-content/mu-plugins
|
||||
sh -c "cd $SRC_FOLDER/wordpress/wp-content/mu-plugins; git pull"
|
||||
fi
|
||||
docker-compose run --user=root isard-apps-wordpress-cli /bin/bash -c 'chown -R 33:33 /var/www/html/wp-content/mu-plugins;'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue