mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Remove not needed vnstat log
This commit is contained in:
parent
0fdca79728
commit
77ea978dd1
1 changed files with 1 additions and 3 deletions
|
@ -38,9 +38,7 @@ backup_database() {
|
|||
}
|
||||
|
||||
restore_database() {
|
||||
if [ ! -f $BACKUP_FILE ]; then
|
||||
logger -t $LOGGER_TAG -p err "cannot restore, backup file does not exist (yet)"
|
||||
else
|
||||
if [ -f $BACKUP_FILE ]; then
|
||||
logger -t $LOGGER_TAG -p info 'restoring database'
|
||||
[ ! -d $VNSTAT_DIR ] && mkdir $VNSTAT_DIR
|
||||
/bin/tar -xzf $BACKUP_FILE -C $VNSTAT_DIR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue