Ver código fonte

disable new blog notifications using --skip-email

Girish Ramakrishnan 9 anos atrás
pai
commit
b9f38960d2
2 arquivos alterados com 2 adições e 3 exclusões
  1. 0 2
      Dockerfile
  2. 2 1
      start.sh

+ 0 - 2
Dockerfile

@@ -14,8 +14,6 @@ RUN mkdir -p /run/wordpress/sessions && \
 
 RUN curl -L -o /app/code/wp https://github.com/wp-cli/wp-cli/releases/download/v0.23.0/wp-cli-0.23.0.phar
 RUN chmod +x /app/code/wp
-# https://github.com/wp-cli/wp-cli/issues/1164
-RUN echo "<?php function wp_new_blog_notification() {} ?>" > /run/wordpress/disable-new-blog-notification.php
 
 # Get the plugins
 RUN curl -L -o /app/code/authLdap.zip https://github.com/cloudron-io/authLdap/archive/c61dd00e49463ebd629d364ec894ae1e09ae4a15.zip

+ 2 - 1
start.sh

@@ -28,7 +28,8 @@ if [[ ! -f "/app/data/.dbsetup" ]]; then
     mkdir -p /app/data/wp-content/mu-plugins
     cp -r /app/code/wp-content-vanilla/* /app/data/wp-content/
 
-    $WP --url="${APP_ORIGIN}" --require=/run/wordpress/disable-new-blog-notification.php core install \
+    # --skip-email is part of 0.23.0 (https://github.com/wp-cli/wp-cli/pull/2345)
+    $WP --url="${APP_ORIGIN}" --skip-email core install \
         --url="${APP_ORIGIN}" \
         --title="My blog" \
         --admin_user=admin \