diff options
author | Lars Koeller <lkoeller@FreeBSD.org> | 2004-12-12 19:53:36 +0000 |
---|---|---|
committer | Lars Koeller <lkoeller@FreeBSD.org> | 2004-12-12 19:53:36 +0000 |
commit | ee81faacbfc961986f02d03dd277a59eabfb707c (patch) | |
tree | 76b77ae30b3ae02bb04be194767ef622d27068d8 /sysutils/apcupsd | |
parent | 645c948fc42359041ed48be6d8423c30afa27641 (diff) | |
download | ports-ee81faacbfc961986f02d03dd277a59eabfb707c.tar.gz ports-ee81faacbfc961986f02d03dd277a59eabfb707c.zip |
o) Fix correct deletion of apcupsd.conf file if it's identical with sample
file after fresh install.
PR: -
Submitted by: Kris Kennaway <kris@obsecurity.org>
Notes
Notes:
svn path=/head/; revision=123831
Diffstat (limited to 'sysutils/apcupsd')
-rw-r--r-- | sysutils/apcupsd/pkg-plist | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysutils/apcupsd/pkg-plist b/sysutils/apcupsd/pkg-plist index d58e5c3149d6..165b5bf155e1 100644 --- a/sysutils/apcupsd/pkg-plist +++ b/sysutils/apcupsd/pkg-plist @@ -5,6 +5,7 @@ sbin/apctest %%POWERFL%%sbin/powerflute etc/apcupsd/apcupsd.conf.net-master.sample etc/apcupsd/apcupsd.conf.net-slave.sample +@unexec if cmp -s %D/etc/apcupsd/apcupsd.conf.sample %D/etc/apcupsd/apcupsd.conf; then rm -f %D/etc/apcupsd/apcupsd.conf; fi etc/apcupsd/apcupsd.conf.sample etc/apcupsd/apccontrol etc/apcupsd/changeme |