diff options
author | lkoeller <lkoeller@FreeBSD.org> | 2004-12-13 03:53:36 +0800 |
---|---|---|
committer | lkoeller <lkoeller@FreeBSD.org> | 2004-12-13 03:53:36 +0800 |
commit | a6cedafa2b8405ca75328481f72effb4bdabc981 (patch) | |
tree | 0f3489776f5f164e97bc5b2d193155de365d47cf /sysutils/apcupsd | |
parent | abd4701d96e5ee89fa5c044269f7048b273a2347 (diff) | |
download | freebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.tar.gz freebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.tar.zst freebsd-ports-gnome-a6cedafa2b8405ca75328481f72effb4bdabc981.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>
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 |