summaryrefslogtreecommitdiffstats
path: root/13.0/fpm/entrypoint.sh
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-10-16 18:30:39 +0200
committerGitHub <noreply@github.com>2018-10-16 18:30:39 +0200
commit424364e2e10a9d6e1a31e6659e2149aac1f1c772 (patch)
treec714ffd0b61f0c3c2d84be2ea6be3b63dbca0041 /13.0/fpm/entrypoint.sh
parent3838458843b9115179791f693e7afa65d6e22eed (diff)
parentb3df4606be6ad9f7114dfbbd0ae094a0d49872eb (diff)
Merge pull request #515 from SnowMB/add_update_variable
Add NEXTCLOUD_UPDATE for containers started with non-default commands
Diffstat (limited to '13.0/fpm/entrypoint.sh')
-rwxr-xr-x13.0/fpm/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/13.0/fpm/entrypoint.sh b/13.0/fpm/entrypoint.sh
index 1f03c913..045227e8 100755
--- a/13.0/fpm/entrypoint.sh
+++ b/13.0/fpm/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