Skip to content

Commit

Permalink
enable app if already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 committed Aug 27, 2019
1 parent 802ca0d commit 1aecb02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1aecb02

Please sign in to comment.