/[smeserver]/rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz11215-fix-line-endings.patch
ViewVC logotype

Annotation of /rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz11215-fix-line-endings.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Mon Nov 30 02:34:32 2020 UTC (4 years ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Wed Nov 18 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
- add update event to avoid reboot [SME: 11146]
- adapt nut UPS for systemd [SME: 9423]

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     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed