fixed sshkey regeneration at first boot
This commit is contained in:
parent
4c813b0b84
commit
c34f65f985
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue