forked from ScoDoc/ScoDoc
Install/Upgrade: améliore script, mail si échec
This commit is contained in:
parent
84580a8a6f
commit
88d9356209
@ -122,3 +122,14 @@ remove_install_status() {
|
||||
rm -f "${SCODOC_INSTALL_STATUS_FILE}"
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
alarm_admin() {
|
||||
echo "Error: alarm_admin $1"
|
||||
echo "Sending email to admin..."
|
||||
echo "Subject: ScoDoc: $1" | mail -s "ScoDoc: $1" root <<EOF
|
||||
|
||||
Erreur lors de la mise à jour de ScoDoc sur $(hostname --fqdn)
|
||||
|
||||
EOF
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user