Page MenuHomeDevCentral

D3512.id9037.diff
No OneTemporary

D3512.id9037.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
Sat, Dec 21, 01:17 (17 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2308652
Default Alt Text
D3512.id9037.diff (1 KB)

Event Timeline