Caddyfile REPLACEME

This commit is contained in:
Arya 2023-01-20 23:10:18 +05:30
parent 4391c162df
commit 775b96263d
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -42,7 +42,7 @@ 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 s/REPLACEME/" + username + "/g /home/" + username + "/meta-info.env\n" + "sed s/REPLACEME/" + username + "/g /home/" + username + "/{meta-info.env,Caddyfile}\n" +
"setquota -u " + username + " 20G 20G 0 0 /\n" + "setquota -u " + username + " 20G 20G 0 0 /\n" +
"echo \"" + username + "'s account has been created!\"" "echo \"" + username + "'s account has been created!\""