-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.sh
76 lines (51 loc) · 2.13 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/sh
#############################################################################
# File containing configuration parameters used by various scripts
#
# Author: fritz from NAS4Free forum
#
#############################################################################
################################################
# PARAMETERS THAT CAN BE MODIFIED BY THE USER
################################################
# Mail configuration
################################################
CFG_MAIL_FROM="[email protected]" # Enter the mail address of the NAS here (should be the same address than in NAS GUI: System|Advanced|Email)
CFG_MAIL_TO="[email protected]" # Enter the email of the NAS administrator here
# Paths to log folder, temp folder...
#
# ATTENTION: THESE FOLDERS MUST EXIST !!!
# IF THEY DON'T, PLEASE CREATE THEM
################################################
CFG_TMP_FOLDER="./tmp" # Folder used to write temporary file
CFG_LOG_FOLDER="./log" # Folder containing all log files
################################################
# DO NOT CHANGE THE PARAMETERS BELOW
################################################
# Version of the package
################################################
CFG_VERSION="v2.5.3"
# Paths to specific temp files / folders ...
################################################
CFG_LOCKS_FOLDER="$CFG_TMP_FOLDER/locks" # Folder containing all locks (indicating that a script is running)
CFG_FORBID_ANY_LOCK_ACQUISITION_FILE="$CFG_TMP_FOLDER/forbid_acquisition.lock" # File aimed at notifying that no lock is allowed to be acquired
# Path to used utilities
################################################
BIN_RM="/bin/rm"
BIN_LS="/bin/ls"
BIN_MKDIR="/bin/mkdir"
BIN_TR="/usr/bin/tr"
BIN_DATE="/bin/date"
BIN_PRINTF="/usr/bin/printf"
BIN_MSMTP="/usr/local/bin/msmtp"
CFG_MSMTP_CONF="/var/etc/msmtp.conf"
BIN_ZPOOL="/sbin/zpool"
BIN_ZFS="/sbin/zfs"
BIN_HOSTNAME="/bin/hostname"
BIN_SHUTDOWN="/sbin/shutdown"
BIN_ACPICONF="/usr/sbin/acpiconf"
BIN_PING="/sbin/ping"
BIN_SMARTCTL="/usr/local/sbin/smartctl"
BIN_SSH="/usr/bin/ssh"
BIN_SOCKSTAT="/usr/bin/sockstat"
BIN_SMBSTATUS="/usr/local/bin/smbstatus"