Girish Ramakrishnan 10 anni fa
parent
commit
668703bd34
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      start.sh

+ 3 - 0
start.sh

@@ -17,6 +17,8 @@ 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 +47,7 @@ EOF
 
     $WP option update users_can_register 1
     $WP option update wpoa_cloudron_api_enabled 1
+    $WP option update wpoa_new_user_role administrator
 else
     rm -rf /app/code/wp-content # upgrades & updates - starting out with existing data
     ln -sf /app/data/wp-content /app/code/wp-content