Fix replacement

This commit is contained in:
Robert Miles 2018-09-24 15:07:18 -04:00
parent 6a85c918fc
commit 8b95ccb89e
1 changed files with 1 additions and 1 deletions

View File

@ -13,4 +13,4 @@ cr = crypt.crypt(pw)
subprocess.run("sudo useradd -m -g 100 -p {} -s /bin/bash {}".format(cr,args.username),shell=True)
subprocess.run("echo '{}' | sudo tee /home/{}/.ssh/authorized_keys".format(args.key,args.username),shell=True)
subprocess.run("sed -e 's/username/{}/' -e 's/password/{}/' email.tmpl | sendmail {} sudoers@tilde.team",shell=True)
subprocess.run("sed -e 's/newusername/{}/' -e 's/newpassword/{}/' email.tmpl | sendmail {} sudoers@tilde.team".format(args.username,pw,args.email),shell=True)