Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
docker
Commits
f20e7fc4
Unverified
Commit
f20e7fc4
authored
6 months ago
by
Josh
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: make sure to fail rather than continue if rsync fails
Signed-off-by:
Josh
<
josh.t.richards@gmail.com
>
parent
7f707b6c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-entrypoint.sh
+12
-0
12 additions, 0 deletions
docker-entrypoint.sh
with
12 additions
and
0 deletions
docker-entrypoint.sh
+
12
−
0
View file @
f20e7fc4
...
@@ -172,12 +172,24 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
...
@@ -172,12 +172,24 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi
fi
rsync
$rsync_options
--delete
--exclude-from
=
/upgrade.exclude /usr/src/nextcloud/ /var/www/html/
rsync
$rsync_options
--delete
--exclude-from
=
/upgrade.exclude /usr/src/nextcloud/ /var/www/html/
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"Rsync failed. Giving up to be safe."
exit
1
fi
for
dir
in
config data custom_apps themes
;
do
for
dir
in
config data custom_apps themes
;
do
if
[
!
-d
"/var/www/html/
$dir
"
]
||
directory_empty
"/var/www/html/
$dir
"
;
then
if
[
!
-d
"/var/www/html/
$dir
"
]
||
directory_empty
"/var/www/html/
$dir
"
;
then
rsync
$rsync_options
--include
"/
$dir
/"
--exclude
'/*'
/usr/src/nextcloud/ /var/www/html/
rsync
$rsync_options
--include
"/
$dir
/"
--exclude
'/*'
/usr/src/nextcloud/ /var/www/html/
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"Rsync failed. Giving up to be safe."
exit
1
fi
fi
fi
done
done
rsync
$rsync_options
--include
'/version.php'
--exclude
'/*'
/usr/src/nextcloud/ /var/www/html/
rsync
$rsync_options
--include
'/version.php'
--exclude
'/*'
/usr/src/nextcloud/ /var/www/html/
if
[
"
$?
"
-ne
"0"
]
;
then
echo
"Rsync failed. Giving up to be safe."
exit
1
fi
# Install
# Install
if
[
"
$installed_version
"
=
"0.0.0.0"
]
;
then
if
[
"
$installed_version
"
=
"0.0.0.0"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment