mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-20 21:43:18 +00:00
19 lines
568 B
Bash
19 lines
568 B
Bash
#!/bin/bash
|
|
#####################################################################################
|
|
#
|
|
# Script to remove the ACA service when running as a service if not running in a container
|
|
#
|
|
#####################################################################################
|
|
|
|
SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
|
|
pushd $SCRIPT_DIR > /dev/null
|
|
source ../db/mysql_util.sh
|
|
|
|
check_systemd
|
|
if [ $SYSD_SERVICE = true ]; then
|
|
systemctl stop hirs-aca
|
|
systemctl disable hirs-aca.service
|
|
systemctl reset-failed hirs-aca
|
|
fi
|
|
|
|
popd > /dev/null |