Skip to content

Commit 5bcaaff

Browse files
committed
Remove obsolete ports.conf during update (if the file exists).
1 parent c134835 commit 5bcaaff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/deb/hestia/postinst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ fi
5757
if [ "$DNS_SYSTEM" = 'bind9' ] && [ ! -f /etc/apparmor.d/local/usr.sbin.named ]; then
5858
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2> /dev/null
5959
fi
60+
61+
# Remove obsolete ports.conf if exist.
62+
if [ -f /usr/local/hestia/data/firewall/ports.conf ]; then
63+
rm -f /usr/local/hestia/data/firewall/ports.conf
64+
fi
65+
6066
exit 0

0 commit comments

Comments
 (0)