Fix quelques probleme de deploiements
This commit is contained in:
parent
6f1dc40919
commit
98fad26579
|
@ -53,11 +53,15 @@ case "$1" in
|
|||
addgroup --gid 1998 vmail
|
||||
fi
|
||||
if ! getent passwd vmail; then
|
||||
useradd -g vmail -u 1998 vmail -d "$VMAIL_HOME"/mail -m
|
||||
useradd -g vmail -u 1998 vmail -d "$VMAIL_HOME" -m
|
||||
fi
|
||||
chown vmail:vmail "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/*
|
||||
chmod u+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/*
|
||||
chmod g+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/*
|
||||
test -d "$VMAIL_HOME" || mkdir -p "$VMAIL_HOME"
|
||||
chown vmail:vmail "$VMAIL_HOME"
|
||||
chown vmail:vmail "$VMAIL_HOME"/* || true # It may be empty
|
||||
chmod u+rxw "$VMAIL_HOME"
|
||||
chmod u+rxw "$VMAIL_HOME"/* || true # It may be empty
|
||||
chmod g+rxw "$VMAIL_HOME"
|
||||
chmod g+rxw "$VMAIL_HOME"/* || true # It may be empty
|
||||
|
||||
# build local.sh if it does not exist
|
||||
if [ ! -f $CONFIGFILE ]; then
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
alternc (3.1~alpha1) experimental; urgency=low
|
||||
|
||||
* menu became dynamic with a class
|
||||
* /var/alternc disapear to became Debian-compliant
|
||||
|
||||
-- Alan Garcia <fufroma@nnx.com> Mon, 18 Feb 2013 16:09:58 +0100
|
||||
|
||||
alternc (3.0) stable; urgency=low
|
||||
|
||||
* RELEASE of AlternC 3.0
|
||||
|
|
|
@ -96,7 +96,7 @@ doone() {
|
|||
if [ "$DEBUG" ]; then
|
||||
echo "Setting rights and ownership for user $LOGIN having gid $GID"
|
||||
fi
|
||||
REP="$(get_html_path_by_name "$name")"
|
||||
REP="$(get_html_path_by_name "$LOGIN")"
|
||||
|
||||
# Set the file readable only for the AlternC User
|
||||
mkdir -p "$REP"
|
||||
|
|
Loading…
Reference in New Issue