From ab7a449d5e45313091b89d30c6ccdd56c94a9704 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 21 Jan 2023 18:59:56 +0530 Subject: [PATCH] use registration email as def email for meta-info --- pages/signup.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/signup.go b/pages/signup.go index 233ed21..5d7aa07 100644 --- a/pages/signup.go +++ b/pages/signup.go @@ -43,7 +43,8 @@ func SignupPage(c *fiber.Ctx) error { "echo \"${pass}\" > /home/" + username + "/pass\n" + "chmod 600 /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" + "setquota -u " + username + " 20G 20G 0 0 /\n" + "echo \"" + username + "'s account has been created!\"\n" +