From 6a9614750d5d88a48162a9b043b7eb2fd95b0c47 Mon Sep 17 00:00:00 2001 From: Romain Dessort Date: Tue, 10 Jan 2012 17:39:03 +0100 Subject: [PATCH] chroot-ssh.sh is not sh-compatible :-(. --- chroot-ssh.sh | 2 +- jail-evobackup-add.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chroot-ssh.sh b/chroot-ssh.sh index 00dde07..bd08f20 100644 --- a/chroot-ssh.sh +++ b/chroot-ssh.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Gregory Colpart # chroot script for OpenSSH diff --git a/jail-evobackup-add.sh b/jail-evobackup-add.sh index ac9c196..586e2d5 100644 --- a/jail-evobackup-add.sh +++ b/jail-evobackup-add.sh @@ -52,7 +52,7 @@ if [ ! -f 'chroot-ssh.sh' ]; then fi -sh chroot-ssh.sh $BACKUP_ROOT/jails/$jail +bash chroot-ssh.sh $BACKUP_ROOT/jails/$jail sed -i "s/^Port 2222/Port $port/" $BACKUP_ROOT/jails/$jail/etc/ssh/sshd_config