From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 93363446e45aece7b07bfcd6237b2b5eb658d065
Date: Wed, 05 Dec 2018 14:43:57 +0000 [thread overview]
Message-ID: <20181205144357.846D084FDD6@people01.i.ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2126 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 93363446e45aece7b07bfcd6237b2b5eb658d065 (commit)
via 1022b203addeabb2dbaa61c5475ea5ec8e89639a (commit)
from 87487585c0d46532199ffe3deccc04efc3ea8ef4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 93363446e45aece7b07bfcd6237b2b5eb658d065
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Wed Dec 5 14:42:54 2018 +0000
AWS: Add a timestamp to user-data.log
This way, multiple (failed) runs of the script won't
overwrite the log file.
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 1022b203addeabb2dbaa61c5475ea5ec8e89639a
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Wed Dec 5 14:38:28 2018 +0000
AWS: Write user-data.log to /var/log
This should not be in /root at all.
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
src/initscripts/helper/aws-setup | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Difference in files:
diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup
index e3f1d0a9f..af6d24c8b 100644
--- a/src/initscripts/helper/aws-setup
+++ b/src/initscripts/helper/aws-setup
@@ -107,7 +107,8 @@ import_aws_configuration() {
chmod 700 /tmp/aws-user-data.script
# Run the user-data script
- /tmp/aws-user-data.script &>/root/user-data.log
+ local now="$(date -u +"%s")"
+ /tmp/aws-user-data.script &>/var/log/user-data.log.${now}
# Delete the script right away
rm /tmp/aws-user-data.script
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2018-12-05 14:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181205144357.846D084FDD6@people01.i.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox