Those scripts are pretty trivial, calling external commands and using
kill -s and $(...) construction. All that is available in POSIX shell,
so let's not use bash in shebang and utilize more performant shell in
case /bin/sh != /bin/bash (valid for Debian based systems).
Change-Id: Ib5264c5ef51ca9028d7c27d440104a5ab978a557
return name
def _prepend_shebang(self, script):
- return '#!/usr/bin/env bash\n%s' % script
+ return '#!/bin/sh\n%s' % script
def _append_state(self, script, state):
state_path = self._get_full_config_file_path('state')