only show restart command of php-fcgi for nginx if fcgid/fpm is not used

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-11 08:25:19 +01:00
parent 1f24ca9ba2
commit d6c708e6ee
5 changed files with 35 additions and 7 deletions

View File

@@ -283,8 +283,13 @@ exit "$RETVAL"
</content>
</file>
<include>//service[@type='http']/general/commands</include>
<command><![CDATA[chmod u+x /etc/init.d/php-fcgi]]></command>
<command><![CDATA[/etc/init.d/php-fcgi restart]]></command>
<command>
<visibility mode="false">{{settings.phpfpm.enabled}}
</visibility>
<visibility mode="false">{{settings.system.mod_fcgid}}
</visibility>
<content><![CDATA[/etc/init.d/php-fcgi restart]]></content>
</command>
<command><![CDATA[/etc/init.d/nginx restart]]></command>
</daemon>
</service>