45 |
## adding link if needed in /etc/systemd/system/sme-server.target.wants |
## adding link if needed in /etc/systemd/system/sme-server.target.wants |
46 |
## readd event if present in usr/lib as preste-all does not care about that. |
## readd event if present in usr/lib as preste-all does not care about that. |
47 |
- if ( $status eq "enable" and $linkedE eq "not" and $linkedD eq "not" and $wanted eq "want"){ |
- if ( $status eq "enable" and $linkedE eq "not" and $linkedD eq "not" and $wanted eq "want"){ |
48 |
+ if ( $status eq "enable" and $linkedE eq "not" and $linkedD eq "not" and $wanted eq "want" and (! $service =~ /@\.service$/ ) ){ |
+ if ( $status eq "enable" and $linkedE eq "not" and $linkedD eq "not" and $wanted eq "want" and ( $service !~ /\@\.service$/ ) ){ |
49 |
#print "systemctl add-wants sme-server.target $service\n"; |
#print "systemctl add-wants sme-server.target $service\n"; |
50 |
`/usr/bin/systemctl add-wants sme-server.target $service `; |
`/usr/bin/systemctl add-wants sme-server.target $service `; |
51 |
} |
} |