Skip to content

Commit 8d71d63

Browse files
committed
Create updates for nginx and mariadb lists, fix missing named apparmor.
1 parent e7c9fde commit 8d71d63

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/deb/hestia/postinst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,16 @@ if [ "$DB_SYSTEM" = 'mysql' ]; then
4343
rm -f phpMyAdmin-$pma_v-all-languages.tar.gz
4444
fi
4545

46+
# Add amd64 to repositorys to prevent notifications - https://goo.gl/hmsSV7
47+
if ! grep -q 'amd64' /etc/apt/sources.list.d/nginx.list; then
48+
sed s/deb/"deb [arch=amd64]"/g /etc/apt/sources.list.d/nginx.list
49+
fi
50+
if ! grep -q 'amd64' /etc/apt/sources.list.d/mariadb.list; then
51+
sed s/deb/"deb [arch=amd64]"/g /etc/apt/sources.list.d/mariadb.list
52+
fi
53+
54+
# Fix named rule for AppArmor - https://goo.gl/SPqHdq
55+
if [ "$DNS_SYSTEM" = 'bind9' ] && [ ! -f /etc/apparmor.d/local/usr.sbin.named ]; then
56+
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2> /dev/null
57+
fi
4658
exit 0

0 commit comments

Comments
 (0)