Girish Ramakrishnan 9 rokov pred
rodič
commit
4e3bf79f6c
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      start.sh

+ 4 - 0
start.sh

@@ -49,6 +49,10 @@ fi
 # We have to do this on every run to get plugin updates
 if [[ ! -f "/run/wordpress/plugins_unpacked" ]]; then
     echo "Unpacking plugins"
+
+    # clear the directory, otherwise unzip/mv have to be forced
+    rm -rf /app/data/wp-content/mu-plugins/*
+
     unzip -d /app/data/wp-content/mu-plugins/ /app/code/disable-wordpress-updates.zip
     mv /app/data/wp-content/mu-plugins/disable-wordpress-updates/* /app/data/wp-content/mu-plugins/
     rm -rf /app/data/wp-content/mu-plugins/disable-wordpress-updates/