use registration email as def email for meta-info

This commit is contained in:
Arya 2023-01-21 18:59:56 +05:30
parent c0554fe765
commit ab7a449d5e
Signed by untrusted user: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -43,7 +43,8 @@ func SignupPage(c *fiber.Ctx) error {
"echo \"${pass}\" > /home/" + username + "/pass\n" + "echo \"${pass}\" > /home/" + username + "/pass\n" +
"chmod 600 /home/" + username + "/pass\n" + "chmod 600 /home/" + username + "/pass\n" +
"chown " + username + ":" + username + " /home/" + username + "/pass\n" + "chown " + username + ":" + username + " /home/" + username + "/pass\n" +
"sed -i s/REPLACEME/" + username + "/g /home/" + username + "/{meta-info.env,Caddyfile}\n" + "sed -i 's/REPLACEME/" + username + "/g' /home/" + username + "/{meta-info.env,Caddyfile}\n" +
"sed -i 's/EMAIL=/EMAIL=" + email + "/' /home/" + username + "/meta-info.env\n" +
"loginctl enable-linger " + username + "\n" + "loginctl enable-linger " + username + "\n" +
"setquota -u " + username + " 20G 20G 0 0 /\n" + "setquota -u " + username + " 20G 20G 0 0 /\n" +
"echo \"" + username + "'s account has been created!\"\n" + "echo \"" + username + "'s account has been created!\"\n" +