Skip to content

Commit

Permalink
Fix moved in to mainline CustomPiOS guysoft/CustomPiOS@e478646
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Dec 10, 2018
1 parent aacde48 commit bade7af
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/modules/octopi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ update-rc.d change_password defaults
update-rc.d change_hostname defaults


### Try and fix https://github.com/guysoft/OctoPi/issues/424

sed -i "s@ExecStart=/usr/bin/ssh-keygen -A -v@ExecStart=/bin/bash -c ' /usr/bin/ssh-keygen -A -v >> /var/log/regenerate_ssh_host_keys.log 2>\&1'@g" /lib/systemd/system/regenerate_ssh_host_keys.service
sed -i "s@ExecStartPost=/bin/systemctl disable regenerate_ssh_host_keys@ExecStartPost=/bin/bash -c 'for i in /etc/ssh/ssh_host_*_key*; do actualsize=\$(wc -c <\"\$i\") ;if [ \$actualsize -eq 0 ]; then echo size is 0 bytes ; exit 1 ; fi ; done ; /bin/systemctl disable regenerate_ssh_host_keys'@g" /lib/systemd/system/regenerate_ssh_host_keys.service

### OctoPrint

if [ "$OCTOPI_INCLUDE_OCTOPRINT" == "yes" ]
Expand Down

0 comments on commit bade7af

Please sign in to comment.