summaryrefslogtreecommitdiff
path: root/dh_smf
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-07-15 15:16:55 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-07-15 15:16:55 +0400
commit8808c156753c7e1aad2becb46f7239e2db310800 (patch)
tree05576e84130b74861f536b41dd400b72eef25c3a /dh_smf
parent0fa1fb0b608ef472574040f05e193a521e5e8b67 (diff)
downloaddh-smf-8808c156753c7e1aad2becb46f7239e2db310800.tar.gz
Use service duration for an instance
Diffstat (limited to 'dh_smf')
-rwxr-xr-xdh_smf4
1 files changed, 3 insertions, 1 deletions
diff --git a/dh_smf b/dh_smf
index 4c9be42..ad69807 100755
--- a/dh_smf
+++ b/dh_smf
@@ -172,7 +172,9 @@ foreach my $package ( @{ $dh{DOPACKAGES} } ) {
// $xml->{'service'}->{'exec_method'},
'duration' =>
$v->{'property_group'}->{'startd'}->{'propval'}
- ->{'duration'}->{'value'} // 'contract',
+ ->{'duration'}->{'value'}
+ // $xml->{'service'}->{'property_group'}->{'startd'}
+ ->{'propval'}->{'duration'}->{'value'} // 'contract',
'upgrade' =>
$v->{'property_group'}->{'package'}->{'propval'}
->{'upgrade'}->{'value'} // 'stop',