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
31
31
if ($restartDateTime -eq " True" ) {
32
32
Remove-Item - path " $dateTimePath "
33
33
}
34
- Remove-Item - path " $SPLUNKHOME \etc\apps\SplunkForwarderRepairKit \DeleteMeToRestart"
34
+ Remove-Item - path " $PSScriptRoot \DeleteMeToRestart"
35
35
} else {
36
36
Write-output " No settings have been changed." | timestamp
37
37
Write-output " No restart required." | timestamp
38
- }
38
+ }
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # ## Source the appPath script to pull proper app context
3
+ source appContext.sh
4
+
2
5
# ## Configure the path to the restart_check.txt file on the system
3
6
RESTARTINPUT=" $SPLUNK_HOME /etc/restartinput.txt"
4
7
RESTARTSERVER=" $SPLUNK_HOME /etc/restartserver.txt"
@@ -25,7 +28,7 @@ if [ -f "$RESTARTINPUT" ] || [ -f "$RESTARTSERVER" ] || [ -f "$RESTARTDS" ] || [
25
28
if [ -f " $RESTARTDATETIME " ]; then
26
29
rm -f " $RESTARTDATETIME "
27
30
fi
28
- rm -f $SPLUNK_HOME /etc/apps/SplunkForwarderRepairKit/ DeleteMeToRestart
31
+ rm -f " ${APP_PATH} / DeleteMeToRestart"
29
32
else
30
33
echo " $( date +" %Y-%m-%d %H:%M:%S.%3N" ) ${HOSTNAME} : No settings have been changed."
31
34
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