From 66094fad5ab60bb8331c6cdef4723bfe4cd6b1cd Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Thu, 19 Jan 2023 23:10:36 +0530 Subject: [PATCH] improve meta-info.env --- examples/meta-info.env | 12 ++++++------ pages/signup.go | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/meta-info.env b/examples/meta-info.env index 87d3454..ce55597 100644 --- a/examples/meta-info.env +++ b/examples/meta-info.env @@ -1,6 +1,6 @@ -FULL_NAME="Test User" -GEMINI_CAPSULE=gemini://test.com -WEBSITE=https://test.com -DESCRIPTION="A Test User" -EMAIL="test@test.com" -LOCATION="Some Place" +FULL_NAME= +GEMINI_CAPSULE=gemini://REPLACEME.p.projectsegfau.lt +WEBSITE=https://REPLACEME.p.projectsegfau.lt +DESCRIPTION="" +EMAIL= +LOCATION= diff --git a/pages/signup.go b/pages/signup.go index 6e2410e..a83d9ee 100644 --- a/pages/signup.go +++ b/pages/signup.go @@ -42,6 +42,7 @@ 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 s/REPLACEME/" + username + "/g /home/" + username + "/meta-info.env\n" + "echo \"" + username + "'s account has been created!\"" // write to file