Comments
This commit is contained in:
parent
006e58e1de
commit
8f2163119d
|
@ -70,6 +70,8 @@ function install_final {
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_installed_apps_list {
|
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
|
cat $COMPLETION_FILE | grep "install_" > /usr/share/${PROJECT_NAME}/installed.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,9 @@ function item_in_array {
|
||||||
|
|
||||||
function app_is_installed {
|
function app_is_installed {
|
||||||
app_name="$1"
|
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
|
INSTALLED_APPS_LIST=/usr/share/${PROJECT_NAME}/installed.txt
|
||||||
if [ -f $INSTALLED_APPS_LIST ]; then
|
if [ -f $INSTALLED_APPS_LIST ]; then
|
||||||
if ! grep -Fxq "install_${app_name}" $INSTALLED_APPS_LIST; then
|
if ! grep -Fxq "install_${app_name}" $INSTALLED_APPS_LIST; then
|
||||||
|
|
Loading…
Reference in New Issue