From 8fb07aa6c7f90133432d5dc370f5ba640a57c543 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 1 Dec 2009 10:48:43 -0800 Subject: Get rid of warning on package update Warning: cp '/opt/vyatta/etc/level' and '/opt/vyatta/etc/level' are the same file --- debian/vyatta-cfg-system.postinst.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index fd1a160e..646028f3 100644 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -127,6 +127,9 @@ EOF # Install pamradius config (should come with radius client eventually) cp $sysconfdir/pam_radius.cfg /usr/share/pam-configs/radius +fi + +if [ "$sysconfdir" != "/opt/vyatta/etc" ]; then cp $sysconfdir/level $sysconfdir/protected-user /opt/vyatta/etc fi -- cgit v1.2.3