[BACK]Return to shell CVS log [TXT][DIR] Up to [local] / botnow

Annotation of botnow/shell, Revision 1.1

1.1     ! bountyht    1: if [ -n "$1" ]; then
        !             2:
        !             3: groupadd $1
        !             4: adduser -batch $1 $1 $1 `encrypt $2`
        !             5:
        !             6: chmod 700 /home/$1 /home/$1/.ssh
        !             7: chmod 600 /home/$1/{.Xdefaults,.cshrc,.cvsrc,.login,.mailrc,.profile}
        !             8: mkdir /var/www/htdocs/$1
        !             9: ln -s /var/www/htdocs/$1 /home/$1/htdocs
        !            10: chown -R $1:www /var/www/htdocs/$1 /home/$1/htdocs
        !            11: chmod -R o-rx /var/www/htdocs/$1 /home/$1/htdocs
        !            12: chmod -R g+rwx /var/www/htdocs/$1 /home/$1/htdocs
        !            13: echo "server \"$1.us10.ircnow.org\" {
        !            14:         listen on * tls port 443
        !            15:         tls {
        !            16:                 certificate \"/etc/ssl/$1.us10.ircnow.org.fullchain.pem\"
        !            17:                 key \"/etc/ssl/private/$1.us10.ircnow.org.key\"
        !            18:         }
        !            19:         location \"/.well-known/acme-challenge/*\" {
        !            20:                 root \"/acme\"
        !            21:         }
        !            22:         location \"*.php\" {
        !            23:                 fastcgi socket \"/run/php-fpm.sock\"
        !            24:         }
        !            25:         root \"/htdocs/$1\"
        !            26: }
        !            27: " >> /etc/httpd.conf
        !            28: echo "domain \"$1.us10.ircnow.org\" {
        !            29:         domain key \"/etc/ssl/private/$1.us10.ircnow.org.key\"
        !            30:         domain full chain certificate \"/etc/ssl/$1.us10.ircnow.org.fullchain.pem\"
        !            31:         sign with letsencrypt
        !            32: }
        !            33: " >> /etc/acme-client.conf
        !            34: #edquota $1
        !            35: fi

CVSweb