Adjust coding style in "bin" scripts (#279)

The main shell script (start-mailserver.sh) uses two spaces for
indentation. All other shell scripts should use this coding
style.
This commit is contained in:
Josef Friedrich 2016-08-28 21:08:37 +02:00 committed by Thomas VIAL
parent 46278ec890
commit 76d2c779df
3 changed files with 68 additions and 66 deletions

View file

@ -21,7 +21,6 @@ if [ ! -z "$1" ]; then
echo "Password can't be empty"
exit 1
fi
fi
ENTRY=$(echo "$USER|$(doveadm pw -s SHA512-CRYPT -u "$USER" -p "$PASS")")
echo "$ENTRY" >> $DATABASE
else

View file

@ -8,6 +8,9 @@ function usage {
}
if [ ! -z "$1" ]; then
USER=$1
ENTRIES=$(grep "$USER" -vi $DATABASE)
echo "$ENTRIES" > $DATABASE
USER=$1
if [ -f "$DATABASE" ]; then
ENTRIES=$(grep "$USER" -vi $DATABASE)