-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
global.psm1
73 lines (50 loc) · 1.88 KB
/
global.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
$GlobalDetails = @{
#mcrcon
Mcrcon = ".\tools\mcrcon\mcrcon.exe"
#ARRCON
ARRCON = ".\tools\ARRCON\ARRCON.exe"
#SteamCMD
SteamCMD = ".\tools\SteamCMD\steamcmd.exe"
#Java Directory
JavaDirectory = ".\tools\java"
#Path of the logs folder.
LogFolder = ".\logs"
#File extensions to exclude from backups
Exclusions = @(".tmp", ".bak", ".log", ".old", ".temp", ".backup")
#Number of days to keep server logs
Days = 30
#Console Output Text Color
FgColor = "Green"
#Console Output Background Color
BgColor = "Black"
#Console Output Text Color for errors
ErrorColor = "Black"
#Console Output Background Color for errors
ErrorBgColor = "Red"
#Console Output Text Color for sections
SectionColor = "Blue"
#Console Output Background Color for sections
SectionBgColor = "Black"
#Pause on errors
PauseOnErrors = $false
#Backup Frequency in Minutes
BackupCheckFrequency = 60
#Check for Update Frequency in Minutes
UpdateCheckFrequency = 15
#Check if the server is alive Frequency in Minutes
AliveCheckFrequency = 5
#Should be lower or equal to the two above. If you change this value, you need to manually update your exsiting task in the task scheduler.s
TaskCheckFrequency = 5
#Lock Timeout in minutes
LockTimeout = 120
#Max download retries
MaxDownloadRetries = 10
# Define the DateTimeFormat (Change at your own risk, used for filenames)
DateTimeFormat = "yyyy-MM-dd_HH-mm-ss"
# Debug Mode (will not delete any logs or script files and will ignore script locks)
# !!! DO NOT ENABLE IN PRODUCTION !!!
Debug = $false
}
#Create the object
$Global = New-Object -TypeName PsObject -Property $GlobalDetails
Export-ModuleMember -Variable "Global"