summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2012-09-04 17:40:32 -0500
committerD. Johnson <fenris02@fedoraproject.org>2012-09-04 17:40:32 -0500
commitd5ff310b4bc1daef05dc7afab36b76644cede07c (patch)
tree37bbd214bf8ad8d265e3dd05f58d79fe71e8315d
parent82153b46feb719d774175b5abe2ad9cbf3e75669 (diff)
downloadcleanup-d5ff310b4bc1daef05dc7afab36b76644cede07c.tar.gz
cleanup-d5ff310b4bc1daef05dc7afab36b76644cede07c.tar.xz
cleanup-d5ff310b4bc1daef05dc7afab36b76644cede07c.zip
Swap so that the datestamp is in YMD format
-rwxr-xr-xdistro-clean.sh2
-rwxr-xr-xreset-selinux.sh2
-rwxr-xr-xrpm-verify.sh2
-rwxr-xr-xshow-leaves.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/distro-clean.sh b/distro-clean.sh
index c554712..86e343c 100755
--- a/distro-clean.sh
+++ b/distro-clean.sh
@@ -9,7 +9,7 @@ VERBOSE='1'
LOG_ALL='1'
LANG=C
-DS=$(date +%Y%d%m)
+DS=$(date +%Y%m%d)
if [ "$(whoami)" != "root" ]; then
echo "Must be run as root."
diff --git a/reset-selinux.sh b/reset-selinux.sh
index f85a5be..7cd7848 100755
--- a/reset-selinux.sh
+++ b/reset-selinux.sh
@@ -2,7 +2,7 @@
# Partial script version of http://fedorasolved.org/Members/fenris02/post_upgrade_cleanup
-DS=$(/bin/date +%Y%d%m)
+DS=$(/bin/date +%Y%m%d)
LANG=C
TMPDIR=$(/bin/mktemp -d ${TMPDIR:-/tmp}/${0##*/}-XXXXX.log)
[ -d "${TMPDIR}" ] || mkdir -p "${TMPDIR}"
diff --git a/rpm-verify.sh b/rpm-verify.sh
index 5574f59..bb5cc08 100755
--- a/rpm-verify.sh
+++ b/rpm-verify.sh
@@ -7,7 +7,7 @@ if [ "$(/usr/bin/whoami)" != "root" ]; then
exit 1
fi
-DS=$(/bin/date +%Y%d%m)
+DS=$(/bin/date +%Y%m%d)
TMPDIR=$(/bin/mktemp -d ${TMPDIR:-/tmp}/${0##*/}-XXXXX.log)
[ -d "${TMPDIR}" ] || mkdir -p "${TMPDIR}"
diff --git a/show-leaves.sh b/show-leaves.sh
index 7b0af01..18a7c6a 100755
--- a/show-leaves.sh
+++ b/show-leaves.sh
@@ -2,7 +2,7 @@
# Partial script version of http://fedorasolved.org/Members/fenris02/post_upgrade_cleanup
-DS=$(/bin/date +%Y%d%m)
+DS=$(/bin/date +%Y%m%d)
LANG=C
TMPDIR=$(/bin/mktemp -d ${TMPDIR:-/tmp}/${0##*/}-XXXXX.log)
[ -d "${TMPDIR}" ] || mkdir -p "${TMPDIR}"