36 |
+$nutstatus = $nut{status} || 'disabled'; |
+$nutstatus = $nut{status} || 'disabled'; |
37 |
+$master = $nut{Master} || 'yes'; |
+$master = $nut{Master} || 'yes'; |
38 |
+ |
+ |
39 |
+if ($nutstatus eq ''enabled') { |
+if ($nutstatus eq 'enabled') { |
40 |
+ $OUT .= "enable nut-server.service" if ($master eq 'yes'); |
+ $OUT .= "enable nut-server.service" if ($master eq 'yes'); |
41 |
+ $OUT .= "disabled nut-server.service" unless ($master eq 'yes'); |
+ $OUT .= "disable nut-server.service" unless ($master eq 'yes'); |
42 |
+ $OUT .= "enable nut-monitor.service"; |
+ $OUT .= "enable nut-monitor.service"; |
43 |
+ } |
+ } |
44 |
+else |
+else |