Changed adduser to useradd for compatibility

This commit is contained in:
Shay Nehmad 2019-10-03 14:21:19 +03:00
parent 16f8c7841e
commit 3f5272b83b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import datetime
def get_linux_commands_to_add_user(username):
return [
'adduser', # https://linux.die.net/man/8/adduser
'useradd', # https://linux.die.net/man/8/useradd
'-M', # Do not create homedir
'--expiredate', # The date on which the user account will be disabled.
datetime.datetime.today().strftime('%Y-%m-%d'),