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
ed3e2aa7
Commit
ed3e2aa7
authored
Feb 04, 2018
by
Jan Schulz-Hofen
Committed by
Joshua Tauberer
Feb 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new .tar.bz2 source files for ownCloud and fix upgrade paths
parent
fe597da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
owncloud.sh
setup/owncloud.sh
+21
-15
No files found.
setup/owncloud.sh
View file @
ed3e2aa7
...
...
@@ -107,12 +107,12 @@ InstallOwncloud() {
rm
-rf
/usr/local/lib/owncloud
# Download and verify
wget_verify https://download.owncloud.org/community/owncloud-
$version
.
zip
$hash
/tmp/owncloud.zip
wget_verify https://download.owncloud.org/community/owncloud-
$version
.
tar.bz2
$hash
/tmp/owncloud.tar.bz2
# Extract ownCloud
unzip
-q
/tmp/owncloud.zip
-d
/usr/local/lib
rm
-f
/tmp/owncloud.
zip
tar
xjf /tmp/owncloud.tar.bz2
-C
/usr/local/lib
rm
-f
/tmp/owncloud.
tar.bz2
# The two apps we actually want are not in Nextcloud core. Download the releases from
# their github repositories.
...
...
@@ -183,13 +183,13 @@ if [ ! -d /usr/local/lib/owncloud/ ] \
# We only need to check if we do upgrades when owncloud/Nextcloud was previously installed
if
[
-e
/usr/local/lib/owncloud/version.php
]
;
then
if
grep
-q
"OC_VersionString = '8
\.
1
\.
[0-9]"
/usr/local/lib/owncloud/version.php
;
then
echo
"We are running 8.1.x, upgrading to 8.2.
3
first"
InstallOwncloud 8.2.
3 bfdf6166fbf6fc5438dc358600e7239d1c970613
echo
"We are running 8.1.x, upgrading to 8.2.
11
first"
InstallOwncloud 8.2.
11 e4794938fc2f15a095018ba9d6ee18b53f6f299c
fi
# If we are upgrading from 8.2.x we should go to 9.0 first. Owncloud doesn't support skipping minor versions
if
grep
-q
"OC_VersionString = '8
\.
2
\.
[0-9]"
/usr/local/lib/owncloud/version.php
;
then
echo
"We are running version 8.2.x, upgrading to 9.0.
2
first"
echo
"We are running version 8.2.x, upgrading to 9.0.
11
first"
# We need to disable memcached. The upgrade and install fails
# with memcached
...
...
@@ -207,8 +207,8 @@ if [ ! -d /usr/local/lib/owncloud/ ] \
EOF
chown
www-data.www-data
$STORAGE_ROOT
/owncloud/config.php
# We can now install owncloud 9.0.
2
InstallOwncloud 9.0.
2 72a3d15d09f58c06fa8bee48b9e60c9cd356f9c5
# We can now install owncloud 9.0.
11
InstallOwncloud 9.0.
11 fc8bad8a62179089bc58c406b28997fb0329337b
# The owncloud 9 migration doesn't migrate calendars and contacts
# The option to migrate these are removed in 9.1
...
...
@@ -224,20 +224,26 @@ EOF
# If we are upgrading from 9.0.x we should go to 9.1 first.
if
grep
-q
"OC_VersionString = '9
\.
0
\.
[0-9]"
/usr/local/lib/owncloud/version.php
;
then
echo
"We are running ownCloud 9.0.x, upgrading to ownCloud 9.1.
4
first"
InstallOwncloud 9.1.
4 e637cab7b2ca3346164f3506b1a0eb812b4e841a
echo
"We are running ownCloud 9.0.x, upgrading to ownCloud 9.1.
7
first"
InstallOwncloud 9.1.
7 1307d997d0b23dc42742d315b3e2f11423a9c808
fi
# If we are upgrading from 9.1.x we should go to Nextcloud 10.0 first.
# Newer ownCloud 9.1.x versions cannot be upgraded to Nextcloud 10 and have to be
# upgraded to Nextcloud 11 straight away, see:
# https://github.com/nextcloud/server/issues/2203
# However, for some reason, upgrading to the latest Nextcloud 11.0.7 doesn't
# work either. Therefore, we're upgrading to Nextcloud 11.0.0 in the interim.
# This should not be a problem since we're upgrading to the latest Nextcloud 12
# in the next step.
if
grep
-q
"OC_VersionString = '9
\.
1
\.
[0-9]"
/usr/local/lib/owncloud/version.php
;
then
echo
"We are running ownCloud 9.1.x, upgrading to Nextcloud 1
0.0.5
first"
InstallNextcloud 1
0.0.5 686f6a8e9d7867c32e3bf3ca63b3cc2020564bf6
echo
"We are running ownCloud 9.1.x, upgrading to Nextcloud 1
1.0.0
first"
InstallNextcloud 1
1.0.0 e8c9ebe72a4a76c047080de94743c5c11735e72e
fi
# If we are upgrading from 10.0.x we should go to Nextcloud 11.0 first.
if
grep
-q
"OC_VersionString = '10
\.
0
\.
[0-9]"
/usr/local/lib/owncloud/version.php
;
then
echo
"We are running Nextcloud 10.0.x, upgrading to Nextcloud 11.0.
3
first"
InstallNextcloud 11.0.
3 a396aaa1c9f920099a90a86b4a9cd0ec13083c99
echo
"We are running Nextcloud 10.0.x, upgrading to Nextcloud 11.0.
7
first"
InstallNextcloud 11.0.
7 f936ddcb2ae3dbb66ee4926eb8b2ebbddc3facbe
fi
fi
...
...
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