Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
2caddb41
Commit
2caddb41
authored
May 06, 2017
by
Git Repository
Committed by
Joshua Tauberer
May 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1161 Move the config line for mail_domain to always reset the PRIMARY_HOST (#1163)
parent
d2b72043
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
CHANGELOG.md
CHANGELOG.md
+3
-1
owncloud.sh
setup/owncloud.sh
+4
-1
No files found.
CHANGELOG.md
View file @
2caddb41
...
...
@@ -12,6 +12,7 @@ Mail:
ownCloud (now Nextcloud):
*
ownCloud is replaced with Nextcloud 10.0.5.
*
Fixed an error in Owncloud/Nextcloud setup not updating domain when changing hostname.
Control Panel/Management:
...
...
@@ -19,6 +20,7 @@ Control Panel/Management:
*
Fix an error in the control panel related to IPv6 addresses.
*
TLS certificates for internationalized domain names can now be provisioned from Let's Encrypt automatically.
v0.22 (April 2, 2017)
---------------------
...
...
@@ -160,7 +162,7 @@ v0.18 (May 15, 2016)
ownCloud:
*
Updated to ownCloud to 8.2.3
*
Updated to ownCloud to 8.2.3
Mail:
...
...
setup/owncloud.sh
View file @
2caddb41
...
...
@@ -221,7 +221,6 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
'mail_smtpname' => '',
'mail_smtppassword' => '',
'mail_from_address' => 'owncloud',
'mail_domain' => '
$PRIMARY_HOSTNAME
',
);
?>
EOF
...
...
@@ -262,6 +261,8 @@ fi
# * We need to set the timezone to the system timezone to allow fail2ban to ban
# users within the proper timeframe
# * We need to set the logdateformat to something that will work correctly with fail2ban
# * mail_domain' needs to be set every time we run the setup. Making sure we are setting
# the correct domain name if the domain is being change from the previous setup.
# Use PHP to read the settings file, modify it, and write out the new settings array.
TIMEZONE
=
$(
cat
/etc/timezone
)
CONFIG_TEMP
=
$(
/bin/mktemp
)
...
...
@@ -278,6 +279,8 @@ include("$STORAGE_ROOT/owncloud/config.php");
\$
CONFIG['logtimezone'] = '
$TIMEZONE
';
\$
CONFIG['logdateformat'] = 'Y-m-d H:i:s';
\$
CONFIG['mail_domain'] => '
$PRIMARY_HOSTNAME
',
echo "<?php
\n\\\$
CONFIG = ";
var_export(
\$
CONFIG);
echo ";";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment