Fix the arguments to give to sendmail
[diogenes.git] / config / make_dirs.sh
CommitLineData
6855525e
JL
1#!/bin/sh
2
3# Introductory text
4#
5cat << EOF
6This script will create the Diogenes spool and RCS directories
7and set the permissions so that the directories are writable
8by the web server.
9
10You can cancel this script at any time using Ctrl-C.
11
12EOF
13
14echo -n "Where do you want the Diogenes RCS repository? [/var/lib/diogenes] "
15read RCS_DIR
16if [ "x$RCS_DIR" = "x" ]; then
17 RCS_DIR="/var/lib/diogenes"
18fi
19
20echo -n "Where do you want the Diogenes spool? [/var/spool/diogenes] "
21read SPOOL_DIR
22if [ "x$SPOOL_DIR" = "x" ]; then
23 SPOOL_DIR="/var/spool/diogenes"
24fi
25
26# Get the web server's group.
27#
28echo -n "Under what user does the web process run? [www-data] "
29read OWNER
30if [ "x$OWNER" = "x" ]; then
31 OWNER="www-data"
32fi
33
34# Create directories.
35#
36echo
37echo -n "Creating directories... "
38mkdir -p $RCS_DIR
39mkdir -p $SPOOL_DIR
40mkdir -p $SPOOL_DIR/templates_c
41echo "done."
42
43# Set ownership
44#
45echo
46echo -n "Setting ownership recursively... "
47chown -R $OWNER $RCS_DIR
48chown -R $OWNER $SPOOL_DIR
49echo "done."
50