Skip to content
Snippets Groups Projects
Commit c516dd82 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

execute postchange hook on update too

parent c1f1a0f8
No related branches found
No related tags found
No related merge requests found
......@@ -247,14 +247,18 @@ function deploy(){
# - send success message as email/ slack/ [another fancy tool]
test $isupdate -eq 0 && echo $skipmessage
test $isupdate -eq 0 || run_task "${profiledir}/tasks_postinstall.sh"
grep . $cfgdiff
if [ $? -eq 0 ]; then
hasfilechange=0
grep . $cfgdiff && hasfilechange=1
if [ $hasfilechange -eq 1 ]; then
echo "INFO: a config file was created or changed."
run_task "${profiledir}/tasks_postchange.sh"
else
echo SKIP: No config file was changed.
fi
if [ $isupdate -ne 0 -o $hasfilechange -eq 1 ]; then
run_task "${profiledir}/tasks_postchange.sh"
fi
cd $( dirname $0 )
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment