File relx-3.22.1-fix-templates.patch of Package relx

diff -Ndurp relx-3.22.1/priv/templates/builtin_hook_pid relx-3.22.1-fix-templates/priv/templates/builtin_hook_pid
--- relx-3.22.1/priv/templates/builtin_hook_pid	2016-12-27 18:21:42.000000000 +0200
+++ relx-3.22.1-fix-templates/priv/templates/builtin_hook_pid	2017-01-01 19:08:31.833255473 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # loop until the VM starts responding to pings
 while ! $(relx_nodetool "ping">/dev/null)
diff -Ndurp relx-3.22.1/priv/templates/builtin_hook_wait_for_process relx-3.22.1-fix-templates/priv/templates/builtin_hook_wait_for_process
--- relx-3.22.1/priv/templates/builtin_hook_wait_for_process	2016-12-27 18:21:42.000000000 +0200
+++ relx-3.22.1-fix-templates/priv/templates/builtin_hook_wait_for_process	2017-01-01 19:08:59.160524071 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # loop until the VM starts responding to pings
 while ! $(relx_nodetool "ping">/dev/null)
diff -Ndurp relx-3.22.1/priv/templates/builtin_hook_wait_for_vm_start relx-3.22.1-fix-templates/priv/templates/builtin_hook_wait_for_vm_start
--- relx-3.22.1/priv/templates/builtin_hook_wait_for_vm_start	2016-12-27 18:21:42.000000000 +0200
+++ relx-3.22.1-fix-templates/priv/templates/builtin_hook_wait_for_vm_start	2017-01-01 19:09:09.544246156 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # loop until the VM starts responding to pings
 while ! $(relx_nodetool "ping">/dev/null)
diff -Ndurp relx-3.22.1/priv/templates/install_upgrade_escript relx-3.22.1-fix-templates/priv/templates/install_upgrade_escript
--- relx-3.22.1/priv/templates/install_upgrade_escript	2016-12-27 18:21:42.000000000 +0200
+++ relx-3.22.1-fix-templates/priv/templates/install_upgrade_escript	2017-01-01 19:09:22.534898467 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env escript
+#!/usr/bin/escript
 %%! -noshell -noinput
 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
 %% ex: ft=erlang ts=4 sw=4 et
diff -Ndurp relx-3.22.1/priv/templates/nodetool relx-3.22.1-fix-templates/priv/templates/nodetool
--- relx-3.22.1/priv/templates/nodetool	2016-12-27 18:21:42.000000000 +0200
+++ relx-3.22.1-fix-templates/priv/templates/nodetool	2017-01-01 19:09:27.574763578 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env escript
+#!/usr/bin/escript
 %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
 %% ex: ft=erlang ts=4 sw=4 et
 %% -------------------------------------------------------------------