Benutzer:Martin:Maildirmake

aus PUG, der Penguin User Group
Wechseln zu: Navigation, Suche
#!/bin/sh

VMAIL_UID=vmail
VMAIL_GID=vmail

DIR=$1
if [ -e $DIR ]
then
	echo $DIR: already present. Aborting!
	exit 1
fi

umask 0002

mkdir -p $DIR/new
mkdir -p $DIR/cur
mkdir -p $DIR/tmp

chown -R $VMAIL_UID $DIR
chgrp -R $VMAIL_GID $DIR
chmod -R 700 $DIR

ls -l $DIR