diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-11-29 15:13:11 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-11-29 15:13:11 -0800 |
commit | a88756a60a04f469139077268338c10af29e85df (patch) | |
tree | f7462e6ee33af2f9fa7ac0191f1a21190e309469 /timestamp-releases.sh | |
download | mastermirror-scripts-a88756a60a04f469139077268338c10af29e85df.tar.gz mastermirror-scripts-a88756a60a04f469139077268338c10af29e85df.tar.bz2 mastermirror-scripts-a88756a60a04f469139077268338c10af29e85df.zip |
Initial commit.
Copied from git+ssh://git@git.gentoo.org/infra/cfengine.git repo as:
timestamp 2015-11-29T21:57:00Z
commit 3b63da8fbbb848d5a1f7e7cd7c6989638ed0d817
No passwords, passphrases or key material is contained herein, but it
may reference the pathes to such.
Reviewed-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'timestamp-releases.sh')
-rwxr-xr-x | timestamp-releases.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/timestamp-releases.sh b/timestamp-releases.sh new file mode 100755 index 0000000..8935acd --- /dev/null +++ b/timestamp-releases.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# this is ugly and I don't like it + +if [[ $HOSTNAME == TODO ]]; then + /bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \ + /var/tmp/gmirror/experimental/.timestamp-experimental.x + /bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \ + /var/tmp/gmirror/releases/.timestamp-releases.x +fi +if [[ $HOSTNAME == dipper ]]; then + /bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \ + /var/tmp/gmirror-releases/experimental/.timestamp-experimental.x + /bin/date -u +'%s %a, %d %b %Y %H:%M:%S %z' > \ + /var/tmp/gmirror-releases/releases/.timestamp-releases.x +fi |