ocochard / BSDRP

BSD Router Project
https://bsdrp.net
Other
175 stars 38 forks source link

`config rollback` is always failed. #33

Closed yasuoohno closed 3 years ago

yasuoohno commented 3 years ago

Hi,

I cannot do rollback configuration with config rollback.

[root@router]~# config rollback
Rollback the archived configuration
This script is already running (file /var/run/config.bsdrp.lock detected or /var full)

I think it's trying to get the lock twice:

https://github.com/ocochard/BSDRP/blob/3497f08b1ea2f0de7514e4fefd98f9c778ff65bf/BSDRP/Files/usr/local/sbin/config#L323 https://github.com/ocochard/BSDRP/blob/3497f08b1ea2f0de7514e4fefd98f9c778ff65bf/BSDRP/Files/usr/local/sbin/config#L344

ocochard commented 3 years ago

Thanks for the report, fixed on https://github.com/ocochard/BSDRP/commit/c2c30bf8d2b12299eaa095c186600b7b26d7885c