summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorMarc Brückner <marc@ma-br.de>2018-10-13 22:19:16 +0200
committerMarc Brückner <marc@ma-br.de>2018-10-15 15:01:39 +0200
commit63710a75a346f5445f96d1daa0cd93248a9eaedb (patch)
treef785645f93941b54c127cf453ace31d4860090c6 /docker-entrypoint.sh
parent3770bbcb267e23c492c8d427b22818b7b8329486 (diff)
added new environment variable
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-xdocker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index c1c106c1..c1c610d9 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