mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-10 09:09:50 +00:00
Chmod the seded file back to being executable.
This commit is contained in:
parent
90fbe9d698
commit
638319217b
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ class AdminUserCredentials(Task):
|
|||
getcreds_path = os.path.join(info.root, 'etc/init.d/ec2-get-credentials')
|
||||
username = info.manifest.plugins['admin_user']['username']
|
||||
sed_i(getcreds_path, 'username=\'root\'', 'username=\'{username}\''.format(username=username))
|
||||
import stat
|
||||
rwxr_xr_x = (stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR |
|
||||
stat.S_IRGRP | stat.S_IXGRP |
|
||||
stat.S_IROTH | stat.S_IXOTH)
|
||||
os.chmod(getcreds_path, rwxr_xr_x)
|
||||
|
||||
|
||||
class DisableRootLogin(Task):
|
||||
|
|
Loading…
Add table
Reference in a new issue