[blogs] Delegate Wordpress updates to the image entrypoint
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blogs] Delegate Wordpress updates to the image entrypoint
- Date: Fri, 29 Apr 2022 16:59:35 +0000 (UTC)
commit 958313a2a73683df7135b92156ae8b6693bc2c3d
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Dec 29 10:47:46 2020 +0100
Delegate Wordpress updates to the image entrypoint
entrypoint | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/entrypoint b/entrypoint
index c744645..ec209f8 100755
--- a/entrypoint
+++ b/entrypoint
@@ -1,14 +1,9 @@
#!/bin/bash
-WP="wp --url=blogs.gnome.org"
-
-IMAGE_VERSION="$WORDPRESS_VERSION"
-CURRENT_VERSION="$($WP core version)"
+docker-entrypoint.sh apache2
-if [[ "$CURRENT_VERSION" != "$IMAGE_VERSION" ]]; then
- $WP core update
- $WP core update-db --network
- $WP plugin update --all
-fi
+WP="wp --url=blogs.gnome.org"
+$WP core update-db
+$WP core update-db --network
-exec docker-entrypoint.sh php-fpm
+exec php-fpm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]