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:
parent
4cd0d46a12
commit
d7c85c8cce
3 changed files with 3 additions and 3 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue