if gsite2wordpress exist, do nothing
parent
bd27ef4b6a
commit
63b9ed6ac2
3
dd-ctl
3
dd-ctl
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue