if gsite2wordpress exist, do nothing

feature/upgrade_improvements
elena 2022-11-07 10:26:02 +00:00
parent bd27ef4b6a
commit 63b9ed6ac2
1 changed files with 15 additions and 12 deletions

3
dd-ctl
View File

@ -772,6 +772,8 @@ upgrade_plugins_wp(){
# TODO: Fix this, check https://gitlab.com/DD-workspace/DD/-/issues/16 # TODO: Fix this, check https://gitlab.com/DD-workspace/DD/-/issues/16
##install plugin gsite ##install plugin gsite
docker exec -i dd-apps-wordpress sh -s <<-EOF docker exec -i dd-apps-wordpress sh -s <<-EOF
if [ ! -d "/var/www/gsite2wordpress" ];then
apt-get update apt-get update
apt-get install -y git apt-get install -y git
apt install -y zlib1g-dev libjpeg-dev libpng-dev apt install -y zlib1g-dev libjpeg-dev libpng-dev
@ -782,6 +784,7 @@ upgrade_plugins_wp(){
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp mv wp-cli.phar /usr/local/bin/wp
fi
EOF EOF
} }