summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-09-24 09:20:49 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-09-24 09:20:49 +0000
commitde05ccf7be4058e54b4035f1469e5a77d1be1fbb (patch)
treea1ebbdf5fff619391acb197c5a63e8ea99a037c4 /app-backup/amanda/amanda-2.6.0_p2-r3.ebuild
parent keyword ~x86-fbsd (diff)
downloadgentoo-2-de05ccf7be4058e54b4035f1469e5a77d1be1fbb.tar.gz
gentoo-2-de05ccf7be4058e54b4035f1469e5a77d1be1fbb.tar.bz2
gentoo-2-de05ccf7be4058e54b4035f1469e5a77d1be1fbb.zip
Bug 238017, refix the migration of amandates. Sorry to the ~arch users. You will need to fix it up yourself from the snafu location if you did rm at the old location.
(Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc6-00521-gcdbf87e x86_64)
Diffstat (limited to 'app-backup/amanda/amanda-2.6.0_p2-r3.ebuild')
-rw-r--r--app-backup/amanda/amanda-2.6.0_p2-r3.ebuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild b/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild
index 84eea04b1894..5e1f6595f2e9 100644
--- a/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild
+++ b/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild,v 1.1 2008/09/23 02:32:25 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/amanda/amanda-2.6.0_p2-r3.ebuild,v 1.2 2008/09/24 09:20:49 robbat2 Exp $
inherit autotools eutils
@@ -422,18 +422,19 @@ pkg_postinst() {
# Migration of amandates from /etc to $localstatedir/amanda
if [ -f "${ROOT}/etc/amandates" -a \
- ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amandates" ]; then
- einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}"
+ ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
+ einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
einfo "A backup is also placed at /etc/amandates.orig"
cp -f "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
- cp -f "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amandates"
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
+ cp -f "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
fi
if [ -f "${ROOT}/etc/amandates" ]; then
einfo "If you have migrated safely, please delete /etc/amandates"
fi
# Do setups
do_initial /etc dumpdates
- do_initial "${AMANDA_USER_HOMEDIR}" amandates
+ do_initial "${AMANDA_USER_HOMEDIR}/amanda" amandates
# If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
# another host than HOSTNAME.