summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-09-29 12:48:32 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-09-29 12:48:32 +0000
commit566eb993dc29803557514072cfb5485cf4a09877 (patch)
tree1418f12d97da3d91d26dcd27298016fac7982073 /app-admin/puppet/files
parentAdd ~amd64 keyword (diff)
downloadgentoo-2-566eb993dc29803557514072cfb5485cf4a09877.tar.gz
gentoo-2-566eb993dc29803557514072cfb5485cf4a09877.tar.bz2
gentoo-2-566eb993dc29803557514072cfb5485cf4a09877.zip
Removed bashism from init-scripts
(Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc6 x86_64)
Diffstat (limited to 'app-admin/puppet/files')
-rwxr-xr-xapp-admin/puppet/files/puppet.init4
-rwxr-xr-xapp-admin/puppet/files/puppetmaster.init10
2 files changed, 7 insertions, 7 deletions
diff --git a/app-admin/puppet/files/puppet.init b/app-admin/puppet/files/puppet.init
index e909f88aa6e7..afdf5dc7f824 100755
--- a/app-admin/puppet/files/puppet.init
+++ b/app-admin/puppet/files/puppet.init
@@ -8,7 +8,7 @@ depend() {
}
checkconfig() {
- if [[ ! -d "${PUPPET_PID_DIR}" ]] ; then
+ if [ ! -d "${PUPPET_PID_DIR}" ] ; then
eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory"
return 1
fi
@@ -20,7 +20,7 @@ start() {
checkconfig || return $?
local options=""
- [[ -n "${PUPPET_EXTRA_OPTS}" ]] && options="${options} ${PUPPET_EXTRA_OPTS}"
+ [ -n "${PUPPET_EXTRA_OPTS}" ] && options="${options} ${PUPPET_EXTRA_OPTS}"
ebegin "Starting puppet"
start-stop-daemon --start --quiet \
diff --git a/app-admin/puppet/files/puppetmaster.init b/app-admin/puppet/files/puppetmaster.init
index 4cc59794ba84..992a47e9dc6e 100755
--- a/app-admin/puppet/files/puppetmaster.init
+++ b/app-admin/puppet/files/puppetmaster.init
@@ -10,13 +10,13 @@ depend() {
}
checkconfig() {
- if [[ ! -d "${PUPPETMASTER_PID_DIR}" ]] ; then
+ if [ ! -d "${PUPPETMASTER_PID_DIR}" ] ; then
eerror "Please make sure PUPPETMASTER_PID_DIR is defined and points to a existing directory"
return 1
fi
local site_manifest="/etc/puppet/manifests/site.pp"
- [[ -n "${PUPPETMASTER_MANIFEST}" ]] && site_manifest="${PUPPETMASTER_MANIFEST}"
+ [ -n "${PUPPETMASTER_MANIFEST}" ] && site_manifest="${PUPPETMASTER_MANIFEST}"
if [ ! -f "${site_manifest}" ] ; then
eerror "Please create ${site_manifest} before running puppet"
@@ -30,9 +30,9 @@ start() {
checkconfig || return $?
local options=""
- [[ -n "${PUPPETMASTER_MANIFEST}" ]] && options="${options} --manifest=${PUPPETMASTER_MANIFEST}"
- [[ -n "${PUPPETMASTER_LOG}" ]] && options="${options} --logdest=${PUPPETMASTER_LOG}"
- [[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
+ [ -n "${PUPPETMASTER_MANIFEST}" ] && options="${options} --manifest=${PUPPETMASTER_MANIFEST}"
+ [ -n "${PUPPETMASTER_LOG}" ] && options="${options} --logdest=${PUPPETMASTER_LOG}"
+ [ -n "${PUPPETMASTER_EXTRA_OPTS}" ] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
ebegin "Starting puppetmaster"
start-stop-daemon --start --quiet \