Use 0700 perms for backup-everything script
just in case it has secrets
This commit is contained in:
parent
12a29f2088
commit
a920eebc4c
|
@ -43,7 +43,7 @@ def deploy_backup_everything(**context):
|
|||
"""
|
||||
context.setdefault('envname', 'backup')
|
||||
context.setdefault('user', 'rattail')
|
||||
deploy_generic('backup/backup-everything.mako', '/usr/local/bin/backup-everything', mode='0755',
|
||||
deploy_generic('backup/backup-everything.mako', '/usr/local/bin/backup-everything', mode='0700',
|
||||
context=context)
|
||||
|
||||
|
||||
|
@ -91,7 +91,7 @@ def deploy_backup_app(deploy, envname, mkvirtualenv=True, user='rattail',
|
|||
'user': user,
|
||||
}
|
||||
if everything:
|
||||
deploy(everything, '/usr/local/bin/backup-everything', mode='0755', context=everything_context)
|
||||
deploy(everything, '/usr/local/bin/backup-everything', mode='0700', context=everything_context)
|
||||
else:
|
||||
deploy_backup_everything(**everything_context)
|
||||
|
||||
|
|
Loading…
Reference in a new issue