15
2
Fork 0
Browse Source

Generate field file.datetime

pitchum 1 year ago committed by root
parent
commit
02031e370e
  1. 2
      chaprilinfos/template-chaprilinfos.properties
  2. 1
      chaprilinfos/update_chaprilinfos

2
chaprilinfos/template-chaprilinfos.properties

@ -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]

1
chaprilinfos/update_chaprilinfos

@ -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)/" \

Loading…
Cancel
Save