From ceebf8b68e8f806d1f1f946c8ad442b89b7d1f85 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 26 Jun 2013 15:42:01 +0200 Subject: [PATCH] set sane default if not set for timer value --- CLIENT_DATA/define3264.inc | 2 +- CLIENT_DATA/setup3264.ins | 5 +++++ CLIENT_DATA/timer3264.ins | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 CLIENT_DATA/timer3264.ins diff --git a/CLIENT_DATA/define3264.inc b/CLIENT_DATA/define3264.inc index 8fe891d..3881ce1 100644 --- a/CLIENT_DATA/define3264.inc +++ b/CLIENT_DATA/define3264.inc @@ -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$ diff --git a/CLIENT_DATA/setup3264.ins b/CLIENT_DATA/setup3264.ins index 1a6d506..e3cf3d8 100644 --- a/CLIENT_DATA/setup3264.ins +++ b/CLIENT_DATA/setup3264.ins @@ -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" diff --git a/CLIENT_DATA/timer3264.ins b/CLIENT_DATA/timer3264.ins new file mode 100644 index 0000000..41d1504 --- /dev/null +++ b/CLIENT_DATA/timer3264.ins @@ -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%" +] +