diff options
author | pierreozoux <pierre@ozoux.net> | 2020-08-25 17:40:15 +0200 |
---|---|---|
committer | pierreozoux <pierre@ozoux.net> | 2020-08-25 17:40:15 +0200 |
commit | 671d5c4b8c409e0475de4a241bfdc423da44795f (patch) | |
tree | bfdf3b8e76bcfea7997651d18c27211a648bcfd2 | |
parent | 65f3f6d167defbef27d01819da34314e0569040d (diff) |
Remove unecessary logic.clean-logic
-rwxr-xr-x | docker-entrypoint.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index b9ec5fc5..cfe6f9f5 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -86,10 +86,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP if version_greater "$image_version" "$installed_version"; then echo "Initializing nextcloud $image_version ..." - if [ "$installed_version" != "0.0.0.0" ]; then - echo "Upgrading nextcloud from $installed_version ..." - run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before - fi if [ "$(id -u)" = 0 ]; then rsync_options="-rlDog --chown www-data:root" else @@ -175,12 +171,6 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP #upgrade else run_as 'php /var/www/html/occ upgrade' - - run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after - echo "The following apps have been disabled:" - diff /tmp/list_before /tmp/list_after | grep '<' | cut -d- -f2 | cut -d: -f1 - rm -f /tmp/list_before /tmp/list_after - fi fi fi |