forked from ScoDoc/ScoDoc
Install/Upgrade: améliore script, mail si échec
This commit is contained in:
parent
ebd71a3299
commit
d46e77b48a
@ -122,3 +122,14 @@ remove_install_status() {
|
|||||||
rm -f "${SCODOC_INSTALL_STATUS_FILE}"
|
rm -f "${SCODOC_INSTALL_STATUS_FILE}"
|
||||||
fi
|
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