Fix quelques probleme de deploiements

This commit is contained in:
Alan Garcia 2013-02-18 15:28:17 +00:00
parent 6f1dc40919
commit 98fad26579
3 changed files with 16 additions and 5 deletions

View File

@ -53,11 +53,15 @@ case "$1" in
addgroup --gid 1998 vmail addgroup --gid 1998 vmail
fi fi
if ! getent passwd vmail; then 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 fi
chown vmail:vmail "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* test -d "$VMAIL_HOME" || mkdir -p "$VMAIL_HOME"
chmod u+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* chown vmail:vmail "$VMAIL_HOME"
chmod g+rxw "$VMAIL_HOME"/mail "$VMAIL_HOME"/mail/* 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 # build local.sh if it does not exist
if [ ! -f $CONFIGFILE ]; then if [ ! -f $CONFIGFILE ]; then

7
debian/changelog vendored
View File

@ -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 alternc (3.0) stable; urgency=low
* RELEASE of AlternC 3.0 * RELEASE of AlternC 3.0

View File

@ -96,7 +96,7 @@ doone() {
if [ "$DEBUG" ]; then if [ "$DEBUG" ]; then
echo "Setting rights and ownership for user $LOGIN having gid $GID" echo "Setting rights and ownership for user $LOGIN having gid $GID"
fi fi
REP="$(get_html_path_by_name "$name")" REP="$(get_html_path_by_name "$LOGIN")"
# Set the file readable only for the AlternC User # Set the file readable only for the AlternC User
mkdir -p "$REP" mkdir -p "$REP"