[planet-web/oscp] Generate symlinks accordingly



commit fbf3c445b1bc42b351ec760f996ccb68adde3664
Author: Andrea Veri <averi redhat com>
Date:   Thu Aug 29 17:56:51 2019 +0200

    Generate symlinks accordingly

 entrypoint.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/entrypoint.sh b/entrypoint.sh
index c64b872..0283f96 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -6,11 +6,16 @@ set -e
 if [[ "$PLANET_NAME" != 'gnome' ]]; then
     /usr/local/bin/update-planet
     while sleep 3600; do /usr/local/bin/update-planet; done &
+
+    ln -s "/planet/web/$PLANET_NAME" /planet/webroot
 else
     /usr/local/bin/update-pgo-heads
     while sleep 3600; do /usr/local/bin/update-pgo-heads; done &
+
+    for dir in `ls /planet/web/$PLANET_NAME`; do
+      ln -s "/planet/web/${dir}" "/planet/webroot/${dir}"
+    done
 fi
 
-ln -s "/planet/web/$PLANET_NAME" /planet/webroot
 
 exec nginx -g 'daemon off;'


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