Blame
Date:
Sun Dec 27 01:56:09 2020 UTC
Message:
Updated p5-Class-DBI-SQLite-0.11p2
01
2020-10-20
jrmu
if [ -n "$1" ]; then
02
2020-10-20
jrmu
03
2020-10-20
jrmu
groupadd $1
04
2020-10-20
jrmu
adduser -batch $1 $1 $1 `encrypt $2`
05
2020-10-20
jrmu
06
2020-10-20
jrmu
chmod 700 /home/$1 /home/$1/.ssh
07
2020-10-20
jrmu
chmod 600 /home/$1/{.Xdefaults,.cshrc,.cvsrc,.login,.mailrc,.profile}
08
2020-10-20
jrmu
mkdir /var/www/htdocs/$1
09
2020-10-20
jrmu
ln -s /var/www/htdocs/$1 /home/$1/htdocs
10
2020-10-20
jrmu
chown -R $1:www /var/www/htdocs/$1 /home/$1/htdocs
11
2020-10-20
jrmu
chmod -R o-rx /var/www/htdocs/$1 /home/$1/htdocs
12
2020-10-20
jrmu
chmod -R g+rwx /var/www/htdocs/$1 /home/$1/htdocs
13
2020-10-20
jrmu
echo "server \"$1.us10.ircnow.org\" {
14
2020-10-20
jrmu
listen on * tls port 443
15
2020-10-20
jrmu
tls {
16
2020-10-20
jrmu
certificate \"/etc/ssl/$1.us10.ircnow.org.fullchain.pem\"
17
2020-10-20
jrmu
key \"/etc/ssl/private/$1.us10.ircnow.org.key\"
18
2020-10-20
jrmu
}
19
2020-10-20
jrmu
location \"/.well-known/acme-challenge/*\" {
20
2020-10-20
jrmu
root \"/acme\"
21
2020-10-20
jrmu
}
22
2020-10-20
jrmu
location \"*.php\" {
23
2020-10-20
jrmu
fastcgi socket \"/run/php-fpm.sock\"
24
2020-10-20
jrmu
}
25
2020-10-20
jrmu
root \"/htdocs/$1\"
26
2020-10-20
jrmu
}
27
2020-10-20
jrmu
" >> /etc/httpd.conf
28
2020-10-20
jrmu
echo "domain \"$1.us10.ircnow.org\" {
29
2020-10-20
jrmu
domain key \"/etc/ssl/private/$1.us10.ircnow.org.key\"
30
2020-10-20
jrmu
domain full chain certificate \"/etc/ssl/$1.us10.ircnow.org.fullchain.pem\"
31
2020-10-20
jrmu
sign with letsencrypt
32
2020-10-20
jrmu
}
33
2020-10-20
jrmu
" >> /etc/acme-client.conf
34
2020-10-20
jrmu
#edquota $1
35
2020-10-20
jrmu
fi