]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
aws: Log output of user-data script to /root/user-data.log
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Aug 2018 10:09:55 +0000 (11:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Aug 2018 10:51:53 +0000 (11:51 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/helper/aws-setup

index 792a7d5a5e74a1770a2e36ffd888e21ab5cf9035..2cd63136dc5e2338d6ea5afecc19863fd1f29483 100644 (file)
@@ -123,7 +123,7 @@ import_aws_configuration() {
                        chmod 700 /tmp/aws-user-data.script
 
                        # Run the user-data script
-                       /tmp/aws-user-data.script
+                       /tmp/aws-user-data.script 2>&1 | tee /root/user-data.log
 
                        # Delete the script right away
                        rm /tmp/aws-user-data.script