File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1+ * .db
2+ .idea
3+ .DS_Store
File renamed without changes.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # # Grab the current app context
3+ SCRIPT_PATH=$( realpath $0 )
4+ APP_PATH=$( dirname ${SCRIPT_PATH} )
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ if ($restartInput -eq "True" -OR $restartServer -eq "True" -OR $restartDS -eq "T
3131 if ($restartDateTime -eq " True" ) {
3232 Remove-Item - path " $dateTimePath "
3333 }
34- Remove-Item - path " $SPLUNKHOME \etc\apps\SplunkForwarderRepairKit \DeleteMeToRestart"
34+ Remove-Item - path " $PSScriptRoot \DeleteMeToRestart"
3535} else {
3636 Write-output " No settings have been changed." | timestamp
3737 Write-output " No restart required." | timestamp
38- }
38+ }
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # ## Source the appPath script to pull proper app context
3+ source appContext.sh
4+
25# ## Configure the path to the restart_check.txt file on the system
36RESTARTINPUT=" $SPLUNK_HOME /etc/restartinput.txt"
47RESTARTSERVER=" $SPLUNK_HOME /etc/restartserver.txt"
@@ -25,7 +28,7 @@ if [ -f "$RESTARTINPUT" ] || [ -f "$RESTARTSERVER" ] || [ -f "$RESTARTDS" ] || [
2528 if [ -f " $RESTARTDATETIME " ]; then
2629 rm -f " $RESTARTDATETIME "
2730 fi
28- rm -f $SPLUNK_HOME /etc/apps/SplunkForwarderRepairKit/ DeleteMeToRestart
31+ rm -f " ${APP_PATH} / DeleteMeToRestart"
2932else
3033 echo " $( date +" %Y-%m-%d %H:%M:%S.%3N" ) ${HOSTNAME} : No settings have been changed."
3134 echo " $( date +" %Y-%m-%d %H:%M:%S.%3N" ) ${HOSTNAME} : No restart required."
You can’t perform that action at this time.
0 commit comments