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
8b2fed1a
Commit
8b2fed1a
authored
Sep 01, 2014
by
Joel Kåberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes comments by @JoshData
parent
ee244386
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
owncloud.sh
setup/owncloud.sh
+12
-13
No files found.
setup/owncloud.sh
View file @
8b2fed1a
...
...
@@ -13,21 +13,20 @@ apt_install \
apt-get purge
-qq
-y
owncloud
*
# Install ownCloud from source
echo
installing ownCloud...
rm
-f
/tmp/owncloud.zip
wget
-qO
/tmp/owncloud.zip https://download.owncloud.org/community/owncloud-latest.zip
if
[
!
-d
/usr/local/lib/owncloud
]
;
then
# fresh install
unzip
-q
/tmp/owncloud.zip
-d
/usr/local/lib
else
# upgrade existing install
unzip
-u
-o
-q
/tmp/owncloud.zip
-d
/usr/local/lib
hide_output php /usr/local/lib/owncloud/occ upgrade
# Check if ownCloud dir exist, and check if version matches 7.0.1 (if it does, upgrade)
owncloud_ver
=
7.0.2
if
[
!
-d
/usr/local/lib/owncloud/
]
\
||
!
grep
-q
$owncloud_ver
/usr/local/lib/owncloud/version.php
;
then
echo
installing ownCloud...
rm
-f
/tmp/owncloud.zip
wget
-qO
/tmp/owncloud.zip https://download.owncloud.org/community/owncloud-
$owncloud_ver
.zip
unzip
-u
-o
-q
/tmp/owncloud.zip
-d
/usr/local/lib
#either extracts new or replaces current files
hide_output php /usr/local/lib/owncloud/occ upgrade
#if OC is up-to-date it wont matter
rm
-f
/tmp/owncloud.zip
fi
rm
-f
/tmp/owncloud.zip
# Setup ownCloud if the ownCloud database does not yet exist. Running setup when
# the database does exist wipes the database and user data.
if
[
!
-f
$STORAGE_ROOT
/owncloud/owncloud.db
]
;
then
...
...
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