23
2
Fork 0

Generate field file.datetime

This commit is contained in:
pitchum 2021-01-04 14:06:00 +01:00 committed by root
parent f884dfdd57
commit 02031e370e
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# [File]
file.class=service
file.generator=StatoolInfos
file.datetime=2020-12-10T23:15:23.723024
file.datetime=__LAST_UPDATE__
file.protocol=StatoolInfos-0.1.0
# [Service]

View File

@ -6,6 +6,7 @@ TARGET_FILE=/srv/chaprilinfos/well-known/xmppchaprilorg.properties
main() {
cat "${TEMPLATE}" \
| sed "s/__EJABBERD_VERSION__/$(get_ejabberd_version)/" \
| sed "s/__LAST_UPDATE__/$(date -Iminutes)/" \
> ${TARGET_FILE}
# | sed "s/__USER_QUOTA__/$(get_hard_quota)/" \