summaryrefslogtreecommitdiff
path: root/src/transitions
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-03 00:13:11 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-03-03 00:13:11 -0500
commitcf04c38691c1fa80ad9ac65175e034fbff7ab0c3 (patch)
tree46a8712dd9a2bee819ef82a0b279cf502256a8fe /src/transitions
parent0ae1b83bf02bdec7b26e87e16a393b007941f871 (diff)
transitions/0.23: when backing up old gnupg-{host,authentication}, timestamp backups so that they are relatively unique: this makes collisions less likely if the script gets run twice (failing the first time), and helps record the history of the cleanup as well
Diffstat (limited to 'src/transitions')
-rwxr-xr-xsrc/transitions/0.234
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transitions/0.23 b/src/transitions/0.23
index 4410ae8..3964558 100755
--- a/src/transitions/0.23
+++ b/src/transitions/0.23
@@ -193,7 +193,7 @@ if [ -d "$SYSDATADIR"/gnupg-host ] ; then
mkdir -p "$STASHDIR"
chmod 0700 "$STASHDIR"
- mv "${SYSDATADIR}/gnupg-host" "$STASHDIR"
+ mv "${SYSDATADIR}/gnupg-host" "$STASHDIR"/gnupg-host.$(date '+%F_%T%z')
fi
@@ -209,5 +209,5 @@ if [ -d "${SYSDATADIR}/gnupg-authentication" ] ; then
mkdir -p "$STASHDIR"
chmod 0700 "$STASHDIR"
- mv "${SYSDATADIR}/gnupg-authentication" "$STASHDIR"
+ mv "${SYSDATADIR}/gnupg-authentication" "$STASHDIR"/gnupg-authentication.$(date '+%F_%T%z')
fi