chroot-ssh.sh is not sh-compatible :-(.
This commit is contained in:
parent
7c208d7bff
commit
6a9614750d
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Gregory Colpart <reg@evolix.fr>
|
||||
# chroot script for OpenSSH
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue