Fix a syntax error in postinst when installing Ubuntu 24 deb package

pull/7749/head
Aditya Toshniwal 2024-07-25 19:25:34 +05:30
parent 5fd308aafc
commit 23cad47f8d
1 changed files with 2 additions and 5 deletions

View File

@ -83,11 +83,8 @@ EOF
cat << EOF > "${DESKTOPROOT}/DEBIAN/postinst"
#!/bin/sh
STATUS="$(systemctl is-active apparmor.service)"
if [ "${STATUS}" == "active" ]; then
echo "Load apparmor pgAdmin profile..."
apparmor_parser -r /etc/apparmor.d/pgadmin4
fi
echo "Load apparmor pgAdmin profile..."
apparmor_parser -r /etc/apparmor.d/pgadmin4
EOF
chmod 755 "${DESKTOPROOT}/DEBIAN/postinst"
fi