Skip to content
Snippets Groups Projects
Commit f885c4ff authored by Bob Mottram's avatar Bob Mottram
Browse files

Notify about app removals

parent 1a571840
No related branches found
No related tags found
No related merge requests found
......@@ -1242,7 +1242,7 @@ function install_apps_from_webadmin {
notification_str="Installed successfully"
fi
translated_notification_str=$(web_admin_translate_text "$notification_str")
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] ${app_name}" -m "${translated_notification_str}"
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] ${app_name}" -m "${app_name} ${translated_notification_str}"
chown www-data:www-data "$webadmin_install_dir/applog.txt"
else
......@@ -1272,6 +1272,11 @@ function remove_apps_from_webadmin {
if [ -f "$webadmin_install_dir/app_qrcode_${app_name}.png" ]; then
rm "$webadmin_install_dir/app_qrcode_${app_name}.png"
fi
notification_str="removed"
translated_notification_str=$(web_admin_translate_text "$notification_str")
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] ${app_name}" -m "${app_name} ${translated_notification_str}"
# NOTE: we don't need to run web_admin_create_add_apps
# because that happens anyway as part of addremove
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment