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
8eb71483
Commit
8eb71483
authored
Jun 24, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #450 from agriffaut/patch-1
ownCloud breaks if download fails (Issue #449)
parents
47acbbf3
d8e30883
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
owncloud.sh
setup/owncloud.sh
+6
-5
No files found.
setup/owncloud.sh
View file @
8eb71483
...
...
@@ -34,16 +34,17 @@ fi
if
[
!
-d
/usr/local/lib/owncloud/
]
\
||
!
grep
-q
$owncloud_ver
/usr/local/lib/owncloud/version.php
;
then
# Download and verify
echo
"installing ownCloud..."
wget_verify https://download.owncloud.org/community/owncloud-
$owncloud_ver
.zip
$owncloud_hash
/tmp/owncloud.zip
# Clear out the existing ownCloud.
if
[
!
-d
/usr/local/lib/owncloud/
]
;
then
echo
installing ownCloud...
else
if
[
-d
/usr/local/lib/owncloud/
]
;
then
echo
"upgrading ownCloud to
$owncloud_ver
(backing up existing ownCloud directory to /tmp/owncloud-backup-
$$
)..."
mv
/usr/local/lib/owncloud /tmp/owncloud-backup-
$$
fi
# Download and extract ownCloud.
wget_verify https://download.owncloud.org/community/owncloud-
$owncloud_ver
.zip
$owncloud_hash
/tmp/owncloud.zip
# Extract ownCloud
unzip
-u
-o
-q
/tmp/owncloud.zip
-d
/usr/local/lib
#either extracts new or replaces current files
rm
-f
/tmp/owncloud.zip
...
...
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