Skip to content
Snippets Groups Projects
Commit 69abf05d authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

recursive chmod

parent ef7875ac
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ def yes_or_no(question):
def format_command(cmd, dir):
# get group id and username of the user
username = getpass.getuser()
return ' /bin/bash -c "{c} ; useradd {u} && chown -R {u} {d} && chmod 755 {d}"'.format(c=cmd, u=username, d=dir)
return ' /bin/bash -c "{c} ; useradd {u} && chown -R {u} {d} && chmod -R 755 {d}"'.format(c=cmd, u=username, d=dir)
def init(args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment