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
b05af6ee
Commit
b05af6ee
authored
Aug 30, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
v0.13b - release & merge side-branch
ownCloud 8.1.1 trusted_domains autoconfiguration fix.
parents
c5082498
571171a0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
+19
-11
CHANGELOG.md
CHANGELOG.md
+5
-0
README.md
README.md
+2
-2
bootstrap.sh
setup/bootstrap.sh
+1
-1
owncloud.sh
setup/owncloud.sh
+11
-8
No files found.
CHANGELOG.md
View file @
b05af6ee
CHANGELOG
=========
v0.13b (August 30, 2015)
------------------------
Another ownCloud 8.1.1 issue was found. New installations left ownCloud improperly setup ("You are accessing the server from an untrusted domain."). Upgrading to this version will fix that.
v0.13a (August 23, 2015)
------------------------
...
...
README.md
View file @
b05af6ee
...
...
@@ -61,7 +61,7 @@ and on my [personal homepage](https://razor.occams.info/). (Of course, if this r
$ curl -s https://keybase.io/joshdata/key.asc | gpg --import
gpg: key C10BDD81: public key "Joshua Tauberer <jt@occams.info>" imported
$ git verify-tag v0.13
a
$ git verify-tag v0.13
b
gpg: Signature made ..... using RSA key ID C10BDD81
gpg: Good signature from "Joshua Tauberer <jt@occams.info>"
gpg: WARNING: This key is not certified with a trusted signature!
...
...
@@ -70,7 +70,7 @@ and on my [personal homepage](https://razor.occams.info/). (Of course, if this r
Checkout the tag corresponding to the most recent release:
$ git checkout v0.13
a
$ git checkout v0.13
b
Begin the installation.
...
...
setup/bootstrap.sh
View file @
b05af6ee
...
...
@@ -7,7 +7,7 @@
#########################################################
if
[
-z
"
$TAG
"
]
;
then
TAG
=
v0.13
a
TAG
=
v0.13
b
fi
# Are we running as root?
...
...
setup/owncloud.sh
View file @
b05af6ee
...
...
@@ -91,7 +91,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
# Create user data directory
mkdir
-p
$STORAGE_ROOT
/owncloud
# Create a configuration file.
# Create a
n initial
configuration file.
TIMEZONE
=
$(
cat
/etc/timezone
)
instanceid
=
oc
$(
echo
$PRIMARY_HOSTNAME
|
sha1sum
|
fold
-w
10 |
head
-n
1
)
cat
>
$STORAGE_ROOT
/owncloud/config.php
<<
EOF
;
...
...
@@ -101,10 +101,6 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
'instanceid' => '
$instanceid
',
'trusted_domains' =>
array (
0 => '
$PRIMARY_HOSTNAME
',
),
'forcessl' => true, # if unset/false, ownCloud sends a HSTS=0 header, which conflicts with nginx config
'overwritewebroot' => '/cloud',
...
...
@@ -162,15 +158,22 @@ EOF
(
cd
/usr/local/lib/owncloud
;
sudo
-u
www-data php /usr/local/lib/owncloud/index.php
;
)
fi
# Update existing configuration files with changed settings that weren't included in
# previous versions of Mail-in-a-Box. Use PHP to read the settings file, modify it,
# and write out the new settings array.
# Update config.php.
# * trusted_domains is reset to localhost by autoconfig starting with ownCloud 8.1.1,
# so set it here. It also can change if the box's PRIMARY_HOSTNAME changes, so
# this will make sure it has the right value.
# * Some settings weren't included in previous versions of Mail-in-a-Box.
# Use PHP to read the settings file, modify it, and write out the new settings array.
CONFIG_TEMP
=
$(
/bin/mktemp
)
php
<<
EOF
>
$CONFIG_TEMP
&& mv
$CONFIG_TEMP
$STORAGE_ROOT
/owncloud/config.php;
<?php
include("
$STORAGE_ROOT
/owncloud/config.php");
\$
CONFIG['trusted_domains'] = array('
$PRIMARY_HOSTNAME
');
\$
CONFIG['memcache.local'] = '
\\
OC
\\
Memcache
\\
Memcached';
\$
CONFIG['overwrite.cli.url'] = '/cloud';
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