sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by David Brown (d2d2457fb8e5cb18f407358d9a761c132faa1e61)
- From: David Brown <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by David Brown (d2d2457fb8e5cb18f407358d9a761c132faa1e61)
- Date: Sat, 17 Nov 2007 12:40:11 -0600
GIT changes to master grimoire by David Brown <dmlb2000 AT gmail.com>:
net/bind/HISTORY | 3 +++
net/bind/PRE_REMOVE | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
New commits:
commit d2d2457fb8e5cb18f407358d9a761c132faa1e61
Author: David Brown <dmlb2000 AT gmail.com>
Commit: David Brown <dmlb2000 AT gmail.com>
bind backup the readlink of /etc/bind if its a symlink otherwise the
tarfile only contains the symlink
diff --git a/net/bind/HISTORY b/net/bind/HISTORY
index 8740d78..0d45876 100644
--- a/net/bind/HISTORY
+++ b/net/bind/HISTORY
@@ -1,3 +1,6 @@
+2007-11-17 David Brown <dmlb2000 AT gmail.com>
+ * PRE_REMOVE: if /etc/bind is a symlink the backup doesn't work
+
2007-10-24 Elisamuel Resto <ryuji AT mages.ath.cx>
* DETAILS: removed gcc34
* DEPENDS: removed
diff --git a/net/bind/PRE_REMOVE b/net/bind/PRE_REMOVE
index e684e10..ddd9bb0 100755
--- a/net/bind/PRE_REMOVE
+++ b/net/bind/PRE_REMOVE
@@ -3,6 +3,10 @@ persistent_load &&
if [ "$BACKUP" == "y" ]; then
CUR_DATE=`date +%y.%m.%d-%H.%M.%S`
message "${MESSAGE_COLOR}Backing up config files (date: $CUR_DATE).
${DEFAULT_COLOR}"
- tar -cjvf "/etc/bind-backup-$CUR_DATE.tar.bz2" /etc/bind
+ if [ -L /etc/bind ] ; then
+ tar -cjvf "/etc/bind-backup-$CUR_DATE.tar.bz2" $(readlink /etc/bind)
+ else
+ tar -cjvf "/etc/bind-backup-$CUR_DATE.tar.bz2" /etc/bind
+ fi
fi
- [SM-Commit] GIT changes to master grimoire by David Brown (d2d2457fb8e5cb18f407358d9a761c132faa1e61), David Brown, 11/17/2007
Archive powered by MHonArc 2.6.24.