This commit is contained in:
Bob Mottram 2016-09-30 17:49:24 +01:00
parent 006e58e1de
commit 8f2163119d
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,8 @@ function install_final {
}
function update_installed_apps_list {
# Why does this secondary file exist, apart from COMPLETION_FILE ?
# It's so that it is visible to unprivileged users from the user control panel
cat $COMPLETION_FILE | grep "install_" > /usr/share/${PROJECT_NAME}/installed.txt
}

View File

@ -59,6 +59,9 @@ function item_in_array {
function app_is_installed {
app_name="$1"
# Why does this secondary file exist, apart from COMPLETION_FILE ?
# It's so that it is visible to unprivileged users from the user control panel
INSTALLED_APPS_LIST=/usr/share/${PROJECT_NAME}/installed.txt
if [ -f $INSTALLED_APPS_LIST ]; then
if ! grep -Fxq "install_${app_name}" $INSTALLED_APPS_LIST; then