ajust install package

This commit is contained in:
2026-02-08 17:18:23 +08:00
parent 6eb6ff6425
commit c83e4755e9
5 changed files with 88 additions and 2 deletions

View File

@@ -29,6 +29,17 @@ fi
chown -R oj:oj /var/lib/bitoj || true
chmod 755 /var/lib/bitoj /var/log/bitoj
if [ -f /etc/apparmor.d/bitoj-guards ]; then
if command -v apparmor_parser >/dev/null 2>&1; then
apparmor_parser -r /etc/apparmor.d/bitoj-guards || true
fi
if command -v service >/dev/null 2>&1; then
service apparmor reload >/dev/null 2>&1 || true
elif [ -x /etc/init.d/apparmor ]; then
/etc/init.d/apparmor reload >/dev/null 2>&1 || true
fi
fi
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload
if command -v systemd-tmpfiles >/dev/null 2>&1; then