]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
apcupsd: Update email scripts to work with dma
authorAdolf Belka <adolf.belka@ipfire.org>
Fri, 21 Jun 2024 16:04:46 +0000 (18:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jul 2024 09:17:20 +0000 (09:17 +0000)
commit5175a5f19e3bfb7358503b1b264b58a4992e9086
tree8357c1bd6c0c36bb4a29eca8da937ab3583bf07d
parent5b24b5559a6acaa905a32196166ff50f727e9ac2
apcupsd: Update email scripts to work with dma

- The standard email scripts supllied with apcupsd are coded on the basis that sendmail
   is being used. The format of the email information in those scripts does not work with
   the dma mail system implemented in IPFire.
- The scripts provided in the config/apcupsd directory have been updated to work with
   dma. The scripts have been confirmed to work with my production system that is using
   a UPS.
- This patch will replace the standard apcupsd scripts with the ones tailored for IPFire.
- If any existing users have modified their scripts to already work with dma then their
   versions will be saved in their backup.
- The apcupsd-3.14.14-2.ipfire package created in the build with the above changes has
   been installed on a vm system and confirmed to provide the IPFire tailored scripts.
- The lfs change is the addition of the copying of the scripts to the /etc/apcupsd
   directory.
- No change to the rootfile as the scripts names are the same.
- The only thing a user will need to do is to ensure the IPFire email system is enabled,
   configure and confirmed working. Then valid FROM and TO email addresses need to be
   added to each script.
- Once this patch submission is accepted then I will do an update to the apcupsd IPFire
   documentation page to describe these scripts and how to update the email addresses.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/apcupsd/changeme [new file with mode: 0644]
config/apcupsd/commfailure [new file with mode: 0644]
config/apcupsd/commok [new file with mode: 0644]
config/apcupsd/offbattery [new file with mode: 0644]
config/apcupsd/onbattery [new file with mode: 0644]
lfs/apcupsd