fix syntax

This commit is contained in:
Arya 2023-01-21 14:21:15 +05:30
parent b2a9d1772f
commit 0b0f74742c
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -33,7 +33,7 @@ func SignupPage(c *fiber.Ctx) error {
"echo \"email of " + username + " is " + email + "\"\n" +
"pass=\"$(tr -dc A-Za-z0-9 </dev/urandom | head -c 64)\"\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" +
"mkdir /home/" + username + "/.ssh\n" +
"echo '" + ssh + "' > /home/" + username + "/.ssh/authorized_keys\n" +