transitions/0.23: when backing up old gnupg-{host,authentication}, timestamp backups...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 3 Mar 2009 05:13:11 +0000 (00:13 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 3 Mar 2009 05:13:11 +0000 (00:13 -0500)
src/transitions/0.23

index 4410ae857795b15b6b3c3d58c68cceef1911df2a..3964558801bef699fa0a170ff834786193988ab4 100755 (executable)
@@ -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