forked from ProjectSegfault/publapi
add setquota to signup script
This commit is contained in:
parent
66094fad5a
commit
4391c162df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user