Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2019-08-27 11:56:10 +0300
committerGitHub <noreply@github.com>2019-08-27 11:56:10 +0300
commit1aecb02962846e76186d8f2e77d8d246dfb9a346 (patch)
tree565051c3434aba0abc1d769488bd443520e98c81
parent802ca0d76cfe2e53836449d34b504ed040a10c47 (diff)
enable app if already installed16.0.4
-rw-r--r--lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib.sh b/lib.sh
index 21d38e39..b0ed2d72 100644
--- a/lib.sh
+++ b/lib.sh
@@ -695,7 +695,10 @@ or when a new version of the app is released with the following command:
fi
fi
else
- print_text_in_color "$IGreen" "It seems like $1 is installed already"
+ print_text_in_color "$ICyan" "It seems like $1 is installed already, trying to enable it..."
+ # occ_command not possible here because it uses check_command and will exit if occ_command fails
+ sudo -u www-data php ${NCPATH}/occ app:enable "$1"
+ chown -R www-data:www-data "$NC_APPS_PATH"
fi
}