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

Notify when an app is installed

parent ce12f096
No related branches found
No related tags found
No related merge requests found
......@@ -241,6 +241,11 @@ function app_is_installed {
fi
}
function notify_after_app_install {
installed_app_name="${1}"
"${PROJECT_NAME}-notification" -s $"${PROJECT_NAME} app install" -m $"${installed_app_name} installed successfully"
}
# called at the end of the install section of an app script
function install_completed {
if [ ! "${1}" ]; then
......@@ -248,6 +253,7 @@ function install_completed {
fi
if ! grep -Fxq "install_${1}" "$COMPLETION_FILE"; then
echo "install_${1}" >> "$COMPLETION_FILE"
notify_after_app_install "${1}"
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