0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 12:50:54 +02:00

Merge pull request #515 from SnowMB/add_update_variable

Add NEXTCLOUD_UPDATE for containers started with non-default commands
This commit is contained in:
Tilo Spannagel 2018-10-16 18:30:39 +02:00 committed by GitHub
commit 424364e2e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 34 additions and 12 deletions

View file

@ -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