diff options
author | Tilo Spannagel <development@tilosp.de> | 2018-10-16 18:30:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 18:30:39 +0200 |
commit | 424364e2e10a9d6e1a31e6659e2149aac1f1c772 (patch) | |
tree | c714ffd0b61f0c3c2d84be2ea6be3b63dbca0041 /docker-entrypoint.sh | |
parent | 3838458843b9115179791f693e7afa65d6e22eed (diff) | |
parent | b3df4606be6ad9f7114dfbbd0ae094a0d49872eb (diff) |
Merge pull request #515 from SnowMB/add_update_variable
Add NEXTCLOUD_UPDATE for containers started with non-default commands
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x | docker-entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1f03c913..045227e8 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -19,7 +19,7 @@ run_as() { fi } -if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then +if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then installed_version="0.0.0.0" if [ -f /var/www/html/version.php ]; then # shellcheck disable=SC2016 |