|
@@ -49,6 +49,10 @@ fi
|
|
# We have to do this on every run to get plugin updates
|
|
# We have to do this on every run to get plugin updates
|
|
if [[ ! -f "/run/wordpress/plugins_unpacked" ]]; then
|
|
if [[ ! -f "/run/wordpress/plugins_unpacked" ]]; then
|
|
echo "Unpacking plugins"
|
|
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
|
|
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/
|
|
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/
|
|
rm -rf /app/data/wp-content/mu-plugins/disable-wordpress-updates/
|