fix syntax
This commit is contained in:
parent
b2a9d1772f
commit
0b0f74742c
@ -33,7 +33,7 @@ func SignupPage(c *fiber.Ctx) error {
|
|||||||
"echo \"email of " + username + " is " + email + "\"\n" +
|
"echo \"email of " + username + " is " + email + "\"\n" +
|
||||||
"pass=\"$(tr -dc A-Za-z0-9 </dev/urandom | head -c 64)\"\n" +
|
"pass=\"$(tr -dc A-Za-z0-9 </dev/urandom | head -c 64)\"\n" +
|
||||||
"useradd -Um -s /bin/bash " + username + "\n" +
|
"useradd -Um -s /bin/bash " + username + "\n" +
|
||||||
"chmod 711 /home/" + username + "\n"
|
"chmod 711 /home/" + username + "\n" +
|
||||||
"printf \"%s\\n%s\" \"${pass}\" \"${pass}\" | passwd " + username + "\n" +
|
"printf \"%s\\n%s\" \"${pass}\" \"${pass}\" | passwd " + username + "\n" +
|
||||||
"mkdir /home/" + username + "/.ssh\n" +
|
"mkdir /home/" + username + "/.ssh\n" +
|
||||||
"echo '" + ssh + "' > /home/" + username + "/.ssh/authorized_keys\n" +
|
"echo '" + ssh + "' > /home/" + username + "/.ssh/authorized_keys\n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user