andsens / build-debian-cloud

This project has been superseeded by andsens/bootstrap-vz and is no longer maintained - Script to create Debian Squeeze & Wheezy Amazon Machine Images (AMIs) and Google Compute Engine images
Other
117 stars 43 forks source link

Chmod the seded file back to being executable. #91

Closed JamesBromberger closed 11 years ago

JamesBromberger commented 11 years ago

Chmod the get-ec2-credentials file after we sed it in the case of the admin_user being used.

andsens commented 11 years ago

hm, I would actually just prefer sed_i reading the user,group and rights (os.stat(file).st_mode) and setting them once the new file has been written.