Bob Mottram 8 years ago
parent
commit
8f2163119d
2 changed files with 5 additions and 0 deletions
  1. 2
    0
      src/freedombone-utils-final
  2. 3
    0
      src/freedombone-utils-selector

+ 2
- 0
src/freedombone-utils-final View File

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

+ 3
- 0
src/freedombone-utils-selector View File

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