diff options
author | Daniel Hansson <github@hanssonit.se> | 2019-08-27 11:56:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 11:56:10 +0300 |
commit | 1aecb02962846e76186d8f2e77d8d246dfb9a346 (patch) | |
tree | 565051c3434aba0abc1d769488bd443520e98c81 | |
parent | 802ca0d76cfe2e53836449d34b504ed040a10c47 (diff) |
enable app if already installed16.0.4
-rw-r--r-- | lib.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |