+xinetd-cn (1:2.3.14+3) stable; urgency=low
+
+ * Provjera postojanosti konfiguracijskih datoteka prije pokretanja
+ backup procedure za iste.
+
+ -- Dragan Dosen <Dragan.Dosen@CARNet.hr> Mon, 13 Jun 2011 20:23:51 +0200
+
xinetd-cn (1:2.3.14+2) stable; urgency=low
* Promjena e-mail adrese odrzavatelja paketa.
# First, we do backup (inetd, xinetd)
#
-if cp_backup_conffile -r -d $BACKUPDIR -p $INETDCONF; then
- cp_echo "CN: Old $INETDCONF saved as $BACKUPDIR/`basename $INETDCONF`.bak."
+if [ -f "$INETDCONF" ]; then
+ if cp_backup_conffile -r -d $BACKUPDIR -p $INETDCONF; then
+ cp_echo "CN: Old $INETDCONF saved as $BACKUPDIR/`basename $INETDCONF`.bak."
+ fi
fi
-if cp_backup_conffile -r -d $BACKUPDIR -p $CONF; then
- cp_echo "CN: Old $CONF saved as $BACKUPDIR/`basename $CONF`.bak."
+if [ -f "$CONF" ]; then
+ if cp_backup_conffile -r -d $BACKUPDIR -p $CONF; then
+ cp_echo "CN: Old $CONF saved as $BACKUPDIR/`basename $CONF`.bak."
+ fi
fi
CONFTMP=`mktemp $CONF.tmp.XXXXXX`