From 58ba3aa693734e0d6cc5852d7b6df5294013e6af Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Dec 2016 22:14:18 +0000 Subject: [PATCH] No email debug --- src/freedombone-app-mediagoblin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-app-mediagoblin b/src/freedombone-app-mediagoblin index 0b0d662f..1d0dfda0 100755 --- a/src/freedombone-app-mediagoblin +++ b/src/freedombone-app-mediagoblin @@ -382,6 +382,9 @@ function install_mediagoblin { su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg adduser --username $MY_USERNAME --password $MY_USERNAME $MEDIAGOBLIN_ADMIN_PASSWORD" - mediagoblin su -c "cd $MEDIAGOBLIN_BASE_DIR/mediagoblin/ && bin/gmg makeadmin $MY_USERNAME" - mediagoblin + sed -i 's|email_debug_mode.*|email_debug_mode = false|g' $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin.ini + sed -i "s|email_sender_address.*|email_sender_address = \"noreply@${DEFAULT_DOMAIN_NAME}\"|g" $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin.ini + systemctl enable mediagoblin systemctl daemon-reload systemctl start mediagoblin