Skip to content

Commit 52fd2ab

Browse files
Update postinst
1 parent 018846e commit 52fd2ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/deb/hestia/postinst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,17 @@ if [ "$DNS_SYSTEM" = 'bind9' ] && [ ! -f /etc/apparmor.d/local/usr.sbin.named ];
5858
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2> /dev/null
5959
fi
6060

61-
# Remove obsolete ports.conf if exist.
61+
# Remove obsolete ports.conf if exists.
6262
if [ -f /usr/local/hestia/data/firewall/ports.conf ]; then
6363
rm -f /usr/local/hestia/data/firewall/ports.conf
6464
fi
6565

66-
# Set backend port
66+
# Reset backend port
6767
if [ ! -z "$BACKEND_PORT" ]; then
6868
/usr/local/hestia/bin/v-change-sys-port $BACKEND_PORT
6969
fi
7070

71+
# Copy default "Success" page for unassigned hosts
72+
cp -rf $hestiacp/templates/web/unassigned/* /var/www/
73+
7174
exit 0

0 commit comments

Comments
 (0)