Browse Source

get-size-no-quota.sh is configurable by ENV var

tags/1.0.1
Victor Laborie 5 months ago
parent
commit
686ea8ae97
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      scripts/get-size-no-quota.sh

+ 3
- 3
scripts/get-size-no-quota.sh View File

@@ -3,11 +3,11 @@
3 3
 set -eu
4 4
 
5 5
 DUC=$(command -v duc-nox || command -v duc)
6
-EVOADMINMAIL_DIR="/home/evoadmin-mail"
6
+EVOADMINMAIL_DIR=${EVOADMINMAIL_DIR:-'/home/evoadmin-mail'}
7
+VMAIL_DIR=${VMAIL_DIR:-'/home/vmail'}
8
+EVOADMINMAIL_GROUP=${EVOADMINMAIL_GROUP:-'evoadmin-mail'}
7 9
 CSV_DIR="${EVOADMINMAIL_DIR}/quota"
8 10
 IDX_FILE="${EVOADMINMAIL_DIR}/duc-vmail.idx"
9
-VMAIL_DIR="/home/vmail"
10
-EVOADMINMAIL_GROUP="evoadmin-mail"
11 11
 
12 12
 mkdir -p "${CSV_DIR}" && chgrp "${EVOADMINMAIL_GROUP}" "${CSV_DIR}" && chmod 750 "${CSV_DIR}"
13 13
 

Loading…
Cancel
Save