Girish Ramakrishnan 9 роки тому
батько
коміт
4e3bf79f6c
1 змінених файлів з 4 додано та 0 видалено
  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/