Page MenuHomeDevCentral

D3512.id9036.diff
No OneTemporary

D3512.id9036.diff

diff --git a/roles/webserver-alkane/php/files/restart-php-fpm.sh b/roles/webserver-alkane/php/files/restart-php-fpm.sh
--- a/roles/webserver-alkane/php/files/restart-php-fpm.sh
+++ b/roles/webserver-alkane/php/files/restart-php-fpm.sh
@@ -27,5 +27,6 @@
# Update through Salt the service if needed & restart php-fpm
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+rm -f /usr/local/etc/rc.d/php_fpm
grep -q auto-generated /usr/local/etc/rc.d/php-fpm || salt-call state.apply roles/webserver-alkane/php/service
/usr/local/etc/rc.d/php-fpm restart
diff --git a/roles/webserver-alkane/php/service.sls b/roles/webserver-alkane/php/service.sls
--- a/roles/webserver-alkane/php/service.sls
+++ b/roles/webserver-alkane/php/service.sls
@@ -18,6 +18,9 @@
- source: salt://roles/webserver-alkane/php/files/rc/php-fpm
- mode: 755
+/usr/local/etc/rc.d/php_fpm:
+ file.absent
+
/usr/local/bin/restart-php-fpm:
file.managed:
- source: salt://roles/webserver-alkane/php/files/restart-php-fpm.sh

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 13:32 (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252422
Default Alt Text
D3512.id9036.diff (1 KB)

Event Timeline