From bbe74734cca27546ce03f36649adc8056f2ce803 Mon Sep 17 00:00:00 2001 From: RKolodziejczxyk Date: Fri, 5 Jun 2015 12:06:34 +0200 Subject: [PATCH] Dash problem Define bash as a parser, some systems can have "dash" as a "sh" that will end with errors. # /usr/local/ispconfig/server/cron_daily.sh [: 10: root: unexpected operator [: 10: root: unexpected operator --- server/cron.sh | 2 +- server/scripts/run-getmail.sh | 2 +- server/server.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/cron.sh b/server/cron.sh index 3670e68d4..98f0ddfd3 100644 --- a/server/cron.sh +++ b/server/cron.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin diff --git a/server/scripts/run-getmail.sh b/server/scripts/run-getmail.sh index 81f897a88..3eac5ec19 100644 --- a/server/scripts/run-getmail.sh +++ b/server/scripts/run-getmail.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin set -e cd /etc/getmail diff --git a/server/server.sh b/server/server.sh index 2d05d4f0f..9c92a868b 100755 --- a/server/server.sh +++ b/server/server.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin -- GitLab