mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
update vnstat_backup service to use default DatabaseDir if not specified (#307)
This commit is contained in:
parent
f44a31a46a
commit
605be52f28
1 changed files with 2 additions and 1 deletions
|
@ -10,12 +10,13 @@ START=98
|
|||
STOP=10
|
||||
|
||||
vnstat_option() {
|
||||
sed -ne "s/^[;]*$1[[:space:]]*['\"]\([^'\"]*\)['\"].*/\1/p" /etc/vnstat.conf
|
||||
sed -ne "s/^[[:space:]]*$1[[:space:]]*['\"]\([^'\"]*\)['\"].*/\1/p" /etc/vnstat.conf
|
||||
}
|
||||
|
||||
BACKUP_FILE=/etc/vnstat_backup.tar.gz
|
||||
LOGGER_TAG=vnstat_backup
|
||||
VNSTAT_DIR="$(vnstat_option DatabaseDir)"
|
||||
[ -n "$VNSTAT_DIR" ] || VNSTAT_DIR="/var/lib/vnstat"
|
||||
|
||||
_chk_omrquota() {
|
||||
config_get enabled $1 enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue