1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix vnstat backup

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-08-26 10:45:09 +02:00
parent 4cd0d46a12
commit d7c85c8cce
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ backup_database() {
backup="false"
config_load omr-quota
config_foreach _chk_omrquota interface
[ "$(uci -q get vnstat.@vnstat[0].backup)" = "1" ] && backup="true"
[ "$(uci -q get openmptcprouter.settings.vnstat_backup)" = "1" ] && backup="true"
if [ "$backup" = "true" ]; then
if [ ! -d $VNSTAT_DIR ]; then
logger -t $LOGGER_TAG -p err "cannot backup, data directory $VNSTAT_DIR does not exist (yet)"