more logging and debugging

This commit is contained in:
m0duspwnens
2020-08-13 18:09:57 -04:00
parent f9f2744d3f
commit 42c1e817fe

View File

@@ -1373,7 +1373,8 @@ saltify() {
check_service_status() { check_service_status() {
local service_name=$1 local service_name=$1
systemctl status $service_name > /dev/null 2>&1 echo "Checking service $service_name status" >> "$setup_log" 2>&1
systemctl status $service_name >> "$setup_log" 2>&1
local status=$? local status=$?
#true service is running false if not #true service is running false if not
if [ $status -gt 0 ]; then if [ $status -gt 0 ]; then
@@ -1454,6 +1455,9 @@ salt_checkin() {
((LOOP_COUNT+=1)) ((LOOP_COUNT+=1))
done done
systemctl status salt-master;
systemctl status salt-minion;
echo " Confirming existence of the CA certificate" echo " Confirming existence of the CA certificate"
cat /etc/pki/ca.crt cat /etc/pki/ca.crt
echo " Applyng a mine hack"; echo " Applyng a mine hack";