mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-29 15:44:14 +00:00
fixed admin check on aca_bootRun.sh
This commit is contained in:
parent
da3efcb7fa
commit
a054995470
@ -15,6 +15,12 @@ SCRIPT_DIR=$( dirname -- "$( readlink -f -- "$0"; )"; )
|
||||
LOG_FILE=/dev/null
|
||||
GRADLE_WRAPPER="./gradlew"
|
||||
|
||||
# Check for sudo or root user
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "This script requires root. Please run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source $SCRIPT_DIR/../db/start_mysqld.sh
|
||||
|
||||
if [ $ALG = "RSA" ]; then
|
||||
@ -32,11 +38,7 @@ fi
|
||||
check_for_container
|
||||
start_mysqlsd
|
||||
|
||||
# Check for sudo or root user
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then echo "This script requires root. Please run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -d "$CERT_PATH" ]; then
|
||||
echo "$CERT_PATH directory does not exist. Please run aca_setup.sh and try again."
|
||||
|
0
package/scripts/aca/aca_remove_setup.sh
Normal file → Executable file
0
package/scripts/aca/aca_remove_setup.sh
Normal file → Executable file
0
package/scripts/aca/aca_setup.sh
Normal file → Executable file
0
package/scripts/aca/aca_setup.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user