|
@@ -113,17 +113,6 @@ function change_avahi_name {
|
113
|
113
|
echo $"avahi name changed to P${PEER_ID}.local" >> $INSTALL_LOG
|
114
|
114
|
}
|
115
|
115
|
|
116
|
|
-function regenerate_ssh_host_keys {
|
117
|
|
- echo $"Regenerating ssh host keys" >> $INSTALL_LOG
|
118
|
|
- rm -f /etc/ssh/ssh_host_*
|
119
|
|
- dpkg-reconfigure openssh-server
|
120
|
|
- echo $'ssh host keys regenerated' >> $INSTALL_LOG
|
121
|
|
- # remove small moduli
|
122
|
|
- awk '$5 > 2000' /etc/ssh/moduli > ~/moduli
|
123
|
|
- mv ~/moduli /etc/ssh/moduli
|
124
|
|
- echo $'ssh small moduli removed' >> $INSTALL_LOG
|
125
|
|
-}
|
126
|
|
-
|
127
|
116
|
function configure_zeronet {
|
128
|
117
|
sed -i "s|ExecStart=.*|ExecStart=/usr/bin/python zeronet.py --ip_external P${PEER_ID}.local --trackers_file $MESH_INSTALL_DIR/zeronet/bootstrap|g" /etc/systemd/system/zeronet.service
|
129
|
118
|
echo $"zeronet daemon updated to P${PEER_ID}.local" >> $INSTALL_LOG
|
|
@@ -805,7 +794,6 @@ if [ -f $MESH_INSTALL_SETUP ]; then
|
805
|
794
|
create_ram_disk 1
|
806
|
795
|
setup_amnesic_data
|
807
|
796
|
change_avahi_name
|
808
|
|
- regenerate_ssh_host_keys
|
809
|
797
|
if [ $ENABLE_ZERONET ]; then
|
810
|
798
|
configure_zeronet_blog
|
811
|
799
|
configure_zeronet_mail
|