[planet-web/oscp] pgo requires a persistent volume. Also make sure links are using https



commit 6d45a42994995baa651cc5da399c4073b61fb1b3
Author: Andrea Veri <averi redhat com>
Date:   Thu Aug 29 17:13:56 2019 +0200

    pgo requires a persistent volume. Also make sure links are using https

 entrypoint.sh    | 13 +++++--------
 update-pgo-heads |  8 ++++----
 2 files changed, 9 insertions(+), 12 deletions(-)
---
diff --git a/entrypoint.sh b/entrypoint.sh
index 7ff0efd..37365d7 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -2,15 +2,12 @@
 set -x
 set -e
 
-/usr/local/bin/update-planet
-while sleep 3600; do /usr/local/bin/update-planet; done &
 
-if [[ "$PLANET_NAME" == 'people' ]]; then
-    /usr/local/bin/update-pgo-heads
-    while sleep 3600; do /usr/local/bin/update-pgo-heads; done &
-    ln -s /planet/web/ /planet/webroot
-else
-    ln -s "/planet/web/$PLANET_NAME" /planet/webroot
+if [[ "$PLANET_NAME" != 'gnome' ]]; then
+    /usr/local/bin/update-planet
+    while sleep 3600; do /usr/local/bin/update-planet; done &
 fi
 
+ln -s "/planet/web/$PLANET_NAME" /planet/webroot
+
 exec nginx -g 'daemon off;'
diff --git a/update-pgo-heads b/update-pgo-heads
index 9b03e34..09a8055 100755
--- a/update-pgo-heads
+++ b/update-pgo-heads
@@ -18,12 +18,12 @@ cd /planet || exit
 for i in web/heads/*.png; do
        THUMB=$(basename $i)
        if [ -f "web/heads/big/$THUMB" ]; then
-               echo "<a href=\"http://planet.gnome.org/heads/big/$THUMB\";>"
-               echo "  <img src=\"http://planet.gnome.org/heads/$THUMB\";
+               echo "<a href=\"https://planet.gnome.org/heads/big/$THUMB\";>"
+               echo "  <img src=\"https://planet.gnome.org/heads/$THUMB\";
                        border=\"0\" alt=\"$(basename $THUMB .png)\">"
                echo "</a>"
        else
-               echo "<img src=\"http://planet.gnome.org/heads/$THUMB\";
+               echo "<img src=\"https://planet.gnome.org/heads/$THUMB\";
                        border=\"0\" alt=\"$(basename $THUMB .png)\">"
        fi
 done
@@ -38,7 +38,7 @@ echo "</p>
 
 for i in web/heads/logos/*.{png,jpg}; do
        THUMB=$(basename $i)
-       echo "<img src=\"http://planet.gnome.org/heads/logos/$THUMB\";
+       echo "<img src=\"https://planet.gnome.org/heads/logos/$THUMB\";
                border=\"0\" alt=\"$(basename $THUMB)\">"
 done
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]