set sane default if not set for timer value
This commit is contained in:
parent
eebee8e756
commit
ceebf8b68e
@ -1,7 +1,7 @@
|
||||
DefVar $MSVersion$
|
||||
Set $MSVersion$ = GetMsVersionInfo
|
||||
DefVar $sereby_timer_value$
|
||||
Set $sereby_timer_value$ = GetProductProperty("sereby_timer_value", "40")
|
||||
Set $sereby_timer_value$ = GetProductProperty("sereby_timer_value", "5")
|
||||
DefVar $sereby_timer_enabled$
|
||||
Set $sereby_timer_enabled$ = GetProductProperty("sereby_timer_enabled", "1")
|
||||
DefVar $sereby_dotnet1.1$
|
||||
|
@ -74,6 +74,11 @@ else
|
||||
Sub "%ScriptPath%\delsub3264.ins"
|
||||
endif
|
||||
|
||||
if FileExists("%ScriptPath%\timer3264.ins")
|
||||
comment "Start timer sub section"
|
||||
Sub "%ScriptPath%\timer3264.ins"
|
||||
endif
|
||||
|
||||
if FileExists("%ScriptPath%\config3264.ins")
|
||||
comment "Start config sub section"
|
||||
Sub "%ScriptPath%\config3264.ins"
|
||||
|
14
CLIENT_DATA/timer3264.ins
Normal file
14
CLIENT_DATA/timer3264.ins
Normal file
@ -0,0 +1,14 @@
|
||||
if ( strLength($sereby_timer_value$) = "0" )
|
||||
Set $sereby_timer_value$ = 5
|
||||
opsiservicecall_sereby_timer_value
|
||||
endif
|
||||
|
||||
[opsiservicecall_sereby_timer_value]
|
||||
"method": "setProductProperty"
|
||||
"params": [
|
||||
"$ProductId$",
|
||||
"sereby_timer_value",
|
||||
"$sereby_timer_value$",
|
||||
"%opsiserviceUser%"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user