mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-14 12:43:13 +02:00
* build: add bootsrap.service for standalone run * FAQ: build the SDcard image * fix file permissions in git
15 lines
No EOL
460 B
Bash
Executable file
15 lines
No EOL
460 B
Bash
Executable file
#!/bin/bash
|
|
# based on https://github.com/rootzoll/raspiblitz/blob/v1.6/home.admin/_bootstrap.sh
|
|
# used when running standalone
|
|
|
|
################################
|
|
# GENERATE UNIQUE SSH PUB KEYS
|
|
# on first boot up
|
|
################################
|
|
|
|
numberOfPubKeys=$(sudo ls /etc/ssh/ | grep -c 'ssh_host_')
|
|
if [ ${numberOfPubKeys} -eq 0 ]; then
|
|
echo "*** Generating new SSH PubKeys" >> $logFile
|
|
sudo dpkg-reconfigure openssh-server
|
|
echo "OK" >> $logFile
|
|
fi |