Files
server/opt/psa/admin/sbin/modules/watchdog/installer
2026-01-07 20:52:11 +01:00

23 lines
465 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright 1999-2024. WebPros International GmbH. All rights reserved.
main() {
local command="${1:?"Command must be specified as the first parameter"}"
case "$command" in
fix-permissions)
chown psaadm:psaadm -R /usr/local/psa/var/modules/watchdog/
exit $?
;;
drop-rkhunter)
killall rkhunter || :
exit 0
;;
*)
echo "Unknown command: ${command}" >&2
exit 1
;;
esac
}
main "$@"