From 30163a0359d7dcb35c1cc39d3f3ba679a4823ead Mon Sep 17 00:00:00 2001 From: pierreozoux <pierre@ozoux.net> Date: Sun, 26 Apr 2015 14:26:18 +0100 Subject: [PATCH] adds hotfix fo wordpress upgrade --- hotfixes/2015-04-26-upgrade-wordpress.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hotfixes/2015-04-26-upgrade-wordpress.sh diff --git a/hotfixes/2015-04-26-upgrade-wordpress.sh b/hotfixes/2015-04-26-upgrade-wordpress.sh new file mode 100644 index 0000000..748230f --- /dev/null +++ b/hotfixes/2015-04-26-upgrade-wordpress.sh @@ -0,0 +1,11 @@ +docker pull indiepaas/wordpress + +cd /data/domains +for domain in `ls .` +do + if cat $domain/.env|grep APPLICATION=wordpress + then + systemctl restart web@$domain + /opt/bin/docker-enter $domain wp --allow-root core update-db --path=/app + fi +done -- GitLab