Fix bird reload issues when old configuration is present

This commit is contained in:
Fabian Bläse 2021-04-19 19:20:37 +02:00
parent 1a7b97f089
commit 85513e0350
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ babel_remove_custom_redistribute_filters() {
babel_apply() {
# error output hidden because apply might be executed without a preceding configure step.
mv -T /tmp/bird-babel /etc/bird-babel 2>/dev/null
if [ -d /tmp/bird-babel ]; then
rm -rf /etc/bird-babel
mv /tmp/bird-babel /etc/bird-babel
fi
return 0
}