Преглед на файлове

Add disable updates plugin

Girish Ramakrishnan преди 10 години
родител
ревизия
6f5d40dc5f
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 0
      Dockerfile
  2. 2 2
      start.sh

+ 2 - 0
Dockerfile

@@ -17,6 +17,8 @@ RUN chmod +x /app/code/wp
 RUN curl -L -o /app/code/wp-oauth.zip https://github.com//cloudron-io/WP-OAuth/archive/master.zip
 RUN ln -sf /app/data/wp-config.php /app/code/wp-config.php
 
+RUN curl -L -o /app/code/disable-wordpress-updates.zip https://downloads.wordpress.org/plugin/disable-wordpress-updates.zip
+
 # configure apache
 RUN rm /etc/apache2/sites-enabled/*
 RUN sed -i 's/upload_max_filesize = .*/upload_max_filesize = 8M/' /etc/php5/apache2/php.ini

+ 2 - 2
start.sh

@@ -17,8 +17,6 @@ if [[ -z "$(ls -A /app/data)" ]]; then
     define('WP_HOME',    'https://$(hostname -f)');
     define('WP_SITEURL', 'https://$(hostname -f)');
 
-    define('AUTOMATIC_UPDATER_DISABLED', true);
-
     /*
      http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
      http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy
@@ -45,6 +43,8 @@ EOF
     echo "Installing OAuth plugin"
     $WP plugin install --activate --force /app/code/wp-oauth.zip
 
+    $WP plugin install --activate --force /app/code/disable-wordpress-updates.zip
+
     $WP option update users_can_register 1
     $WP option update wpoa_cloudron_api_enabled 1
     $WP option update wpoa_new_user_role administrator