fixed admin check on aca_bootRun.sh

This commit is contained in:
iadgovuser26 2023-08-30 13:19:43 -04:00
parent da3efcb7fa
commit a054995470
3 changed files with 7 additions and 5 deletions

View File

@ -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
View File

0
package/scripts/aca/aca_setup.sh Normal file → Executable file
View File