summaryrefslogtreecommitdiff
path: root/localbackupconfig
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-10-15 19:13:09 +0000
committerJonas Smedegaard <dr@jones.dk>2002-10-15 19:13:09 +0000
commit75928dd757466662de63602e0e367d7f0f37ad0d (patch)
tree9311ce466c04e85a6702943f6ac22fa96de358f6 /localbackupconfig
parentc124571af0d28603c15aa43626e29b8f15b8b239 (diff)
localbackupconfig: Fail on error.
Diffstat (limited to 'localbackupconfig')
-rwxr-xr-xlocalbackupconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/localbackupconfig b/localbackupconfig
index d6e6cf9..0e2b138 100755
--- a/localbackupconfig
+++ b/localbackupconfig
@@ -3,7 +3,7 @@
# /usr/local/sbin/localbackupconfig
# Copyright 2001 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localbackupconfig,v 1.4 2002-03-29 13:43:17 jonas Exp $
+# $Id: localbackupconfig,v 1.5 2002-10-15 19:13:09 jonas Exp $
#
# .dpkg-new files appear when refusing to update a conffile on package update
#
@@ -14,6 +14,8 @@
# .bak is... eh... just in case you felt like using that name now and then...
#
+set -e
+
FQDN=`hostname -f`
BACKUPDIR=/var/local/backups/$FQDN
LOCALCONFIGDIR=/etc/local-$FQDN