1 |
jcrisp |
1.1 |
diff -ruN e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/70nutUPS e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/70nutUPS |
2 |
|
|
--- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/70nutUPS 2020-11-29 14:24:23.562561865 +0100 |
3 |
|
|
+++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/etc/systemd/system-preset/49-koozali.preset/70nutUPS 2020-11-29 14:32:44.706429799 +0100 |
4 |
|
|
@@ -4,13 +4,13 @@ |
5 |
|
|
$master = $nut{Master} || 'yes'; |
6 |
|
|
|
7 |
|
|
if ($nutstatus eq 'enabled') { |
8 |
|
|
- $OUT .= "enable nut-server.service" if ($master eq 'yes'); |
9 |
|
|
- $OUT .= "disable nut-server.service" unless ($master eq 'yes'); |
10 |
|
|
- $OUT .= "enable nut-monitor.service"; |
11 |
|
|
+ $OUT .= "enable nut-server.service\n" if ($master eq 'yes'); |
12 |
|
|
+ $OUT .= "disable nut-server.service\n" unless ($master eq 'yes'); |
13 |
|
|
+ $OUT .= "enable nut-monitor.service\n"; |
14 |
|
|
} |
15 |
|
|
else |
16 |
|
|
{ |
17 |
|
|
- $OUT .= "enable nut-server.service"; |
18 |
|
|
- $OUT .= "enable nut-monitor.service"; |
19 |
|
|
+ $OUT .= "disable nut-server.service\n"; |
20 |
|
|
+ $OUT .= "enable nut-monitor.service\n"; |
21 |
|
|
} |
22 |
|
|
} |