gdritter repos httputils / b9bdcc4
[fixed spacing thing that was bugging me in readme] Getty Ritter 9 years ago
1 changed file(s) with 11 addition(s) and 11 deletion(s). Collapse all Expand all
6060 $ mkdir -p /var/run/aloys
6161 $ for U in $USERS
6262 > do
63 > # find the user's home directory
64 > HOMEDIR=`cat /etc/passwd | grep ${U} | cut -d ':' -f 6`
63 > # find the user's home directory
64 > HOMEDIR=`cat /etc/passwd | grep ${U} | cut -d ':' -f 6`
6565 >
66 > # add a configuration directory to each user
67 > mkdir -p ${HOMEDIR}/aloys
68 > chown ${U} ${HOMEDIR}/aloys
66 > # add a configuration directory to each user
67 > mkdir -p ${HOMEDIR}/aloys
68 > chown ${U} ${HOMEDIR}/aloys
6969 >
70 > # add a new forwarding rule for each user
71 > mkdir -p /var/run/aloys/${U}-local
72 > # make ${U}.example.com forward to the user's aloys configuration
73 > echo "${U}.example.com" >/var/run/aloys/user-${U}/domain
74 > echo "aloys" >/var/run/aloys/user-${U}/mode
75 > echo "${HOMEDIR}/aloys" >/var/run/aloys/user-${U}/conf
70 > # add a new forwarding rule for each user
71 > mkdir -p /var/run/aloys/${U}-local
72 > # make ${U}.example.com forward to the user's aloys configuration
73 > echo "${U}.example.com" >/var/run/aloys/user-${U}/domain
74 > echo "aloys" >/var/run/aloys/user-${U}/mode
75 > echo "${HOMEDIR}/aloys" >/var/run/aloys/user-${U}/conf
7676 > done
7777 $ aloysius /var/run/aloys
7878 ~~~