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:
@@ -277,6 +277,20 @@ exit "$RETVAL"
|
||||
</content>
|
||||
</file>
|
||||
<include>//service[@type='http']/general/commands</include>
|
||||
<command>
|
||||
<visibility mode="false">{{settings.phpfpm.enabled}}
|
||||
</visibility>
|
||||
<visibility mode="false">{{settings.system.mod_fcgid}}
|
||||
</visibility>
|
||||
<content><![CDATA[rc-update add php-fcgi default]]></content>
|
||||
</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[rc-update add nginx default]]></command>
|
||||
<command><![CDATA[/etc/init.d/nginx restart]]></command>
|
||||
</daemon>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -287,8 +287,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[service php-fcgi restart]]></command>
|
||||
<command>
|
||||
<visibility mode="false">{{settings.phpfpm.enabled}}
|
||||
</visibility>
|
||||
<visibility mode="false">{{settings.system.mod_fcgid}}
|
||||
</visibility>
|
||||
<content><![CDATA[service php-fcgi restart]]></content>
|
||||
</command>
|
||||
<command><![CDATA[service nginx restart]]></command>
|
||||
</daemon>
|
||||
</service>
|
||||
|
||||
@@ -327,8 +327,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>
|
||||
|
||||
Reference in New Issue
Block a user