add setquota to signup script

This commit is contained in:
Arya 2023-01-20 12:41:06 +05:30
parent 66094fad5a
commit 4391c162df
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -43,6 +43,7 @@ func SignupPage(c *fiber.Ctx) error {
"chmod 600 /home/" + username + "/pass\n" +
"chown " + username + ":" + username + " /home/" + username + "/pass\n" +
"sed s/REPLACEME/" + username + "/g /home/" + username + "/meta-info.env\n" +
"setquota -u " + username + " 20G 20G 0 0 /\n" +
"echo \"" + username + "'s account has been created!\""
// write to file