From 6899c6dd19ea92c15a27bb24780167b16ec0de1c Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 27 Feb 2023 19:15:43 +0530 Subject: [PATCH] add gemini stuff to signup script template --- utils/signup-script-template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/signup-script-template b/utils/signup-script-template index 83c4036..5a4edd5 100644 --- a/utils/signup-script-template +++ b/utils/signup-script-template @@ -17,6 +17,8 @@ chmod 600 /home/{{username}}/.ssh/authorized_keys chown -R {{username}}:{{username}} /home/{{username}}/.ssh sed -i 's/REPLACEME/{{username}}/g' /home/{{username}}/{meta-info.toml,Caddyfile} loginctl enable-linger {{username}} +mkdir /var/gemini/p.projectsegfau.lt/users/{{username}} && ln -s /var/gemini/p.projectsegfau.lt/users/{{username}} /home/{{username}}/public_gemini +chown -R {{username}}:{{username}} /var/gemini/p.projectsegfau.lt/users/{{username}} setquota -u {{username}} 20G 20G 0 0 / a=$(curl -X POST "https://auth.p.projectsegfau.lt/api/v3/core/users/" -H "accept: application/json" -H "content-type: application/json" -H "Authorization: Bearer $(