fixed sshkey regeneration at first boot

This commit is contained in:
igorpecovnik 2014-01-15 20:16:42 +01:00
parent 4c813b0b84
commit c34f65f985

View file

@ -57,12 +57,8 @@ return 0
case "$1" in
start)
reboot=false
if ! ls /etc/ssh/ssh_host_* > /dev/null 2>&1;then
if which sshd > /dev/null;then
dpkg-reconfigure openssh-server
fi
fi
# /usr/bin/ajenti-ssl-gen `/bin/hostname` -f
rm /etc/ssh/ssh_host*
dpkg-reconfigure openssh-server
set +e
echo "Expanding rootfs..."
if do_expand_rootfs;then