[fixed spacing thing that was bugging me in readme]
Getty Ritter
9 years ago
60 | 60 | $ mkdir -p /var/run/aloys |
61 | 61 | $ for U in $USERS |
62 | 62 | > 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` | |
65 | 65 | > |
66 | > # add a configuration directory to each user | |
67 | > mkdir -p ${HOMEDIR}/aloys | |
68 |
> |
|
66 | > # add a configuration directory to each user | |
67 | > mkdir -p ${HOMEDIR}/aloys | |
68 | > chown ${U} ${HOMEDIR}/aloys | |
69 | 69 | > |
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 | |
76 | 76 | > done |
77 | 77 | $ aloysius /var/run/aloys |
78 | 78 | ~~~ |