Merge branch 'master' of https://github.com/ProjectSegfault/publapi
This commit is contained in:
commit
3a7c7d575b
@ -39,10 +39,10 @@ func SignupPage(c *fiber.Ctx) error {
|
|||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
|
||||||
bashscript := "#!/bin/bash \n" +
|
bashscript := "#!/bin/bash \n" +
|
||||||
"# Path: /var/publapi/users/.sh\n" +
|
"# Path: /var/publapi/users/" + username + ".sh\n" +
|
||||||
"# This file is generated by publapi. Do not edit this file.\n" +
|
"# This file is generated by publapi. Do not edit this file.\n" +
|
||||||
"useradd -Um -s /bin/bash " + username + "\n" +
|
"useradd -Um -s /bin/bash " + username + "\n" +
|
||||||
"printf %s\n%s\n" + pass + " " + pass + " | passwd " + username + "\n" +
|
"printf \"%s\\n%s\"" + " '" + pass + "' '" + pass + "' | passwd " + username + "\n" +
|
||||||
"echo " + username + "'s account has been created!"
|
"echo " + username + "'s account has been created!"
|
||||||
|
|
||||||
fmt.Println(bashscript)
|
fmt.Println(bashscript)
|
||||||
|
Loading…
Reference in New Issue
Block a user