chroot-ssh.sh is not sh-compatible :-(.

This commit is contained in:
Romain Dessort 2012-01-10 17:39:03 +01:00
parent 7c208d7bff
commit 6a9614750d
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Gregory Colpart <reg@evolix.fr>
# chroot script for OpenSSH

View file

@ -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