Created
January 3, 2015 07:36
-
-
Save maimai-swap/7e7432abe0ee34c2d573 to your computer and use it in GitHub Desktop.
elastic beanstalkでs3においたシェルをダウンロードして実行する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files: | |
/root/os-timeclock.sh: | |
source: http://my-bucket-name.s3.amazonaws.com/shells/os-timeclock.sh | |
authentication: S3Access | |
Resources: | |
AWSEBAutoScalingGroup: | |
Metadata: | |
AWS::CloudFormation::Authentication: | |
S3Access: | |
type: S3 | |
roleName: aws-elasticbeanstalk-ec2-role | |
buckets: my-bucket-name | |
commands: | |
01-os-timestamp: | |
command: sh /root/os-timeclock.sh | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elastic beanstalkでs3においたシェルをダウンロードして実行する |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
\cp -f /usr/share/zoneinfo/Japan /etc/localtime | |
sed -i -e "s/ZONE=.*$/ZONE=\"Asia\/Tokyo\"/" /etc/sysconfig/clock | |
sed -i -e "s/UTC=.*$/UTC=false/" /etc/sysconfig/clock | |
echo 'ARC=false' >> /etc/sysconfig/clock | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment