瀏覽代碼

No email debug

Bob Mottram 8 年之前
父節點
當前提交
58ba3aa693
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/freedombone-app-mediagoblin

+ 3
- 0
src/freedombone-app-mediagoblin 查看文件

382
     su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg adduser --username $MY_USERNAME --password $MY_USERNAME $MEDIAGOBLIN_ADMIN_PASSWORD" - mediagoblin
382
     su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg adduser --username $MY_USERNAME --password $MY_USERNAME $MEDIAGOBLIN_ADMIN_PASSWORD" - mediagoblin
383
     su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg makeadmin $MY_USERNAME" - mediagoblin
383
     su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg makeadmin $MY_USERNAME" - mediagoblin
384
 
384
 
385
+    sed -i 's|email_debug_mode.*|email_debug_mode = false|g' $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin.ini
386
+    sed -i "s|email_sender_address.*|email_sender_address = \"noreply@${DEFAULT_DOMAIN_NAME}\"|g" $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin.ini
387
+
385
     systemctl enable mediagoblin
388
     systemctl enable mediagoblin
386
     systemctl daemon-reload
389
     systemctl daemon-reload
387
     systemctl start mediagoblin
390
     systemctl start mediagoblin