Compare commits
2 Commits
85f45d8145
...
5cc5576369
| Author | SHA1 | Date | |
|---|---|---|---|
|
5cc5576369
|
|||
|
7f60c9b07e
|
@@ -6,7 +6,7 @@ PATH_STATS=${PATH_BASE}/stats
|
||||
PATH_STATSDB=${PATH_BASE}/stats.db
|
||||
PATH_LOGS=${PATH_BASE}/logs
|
||||
PATH_AUTH=${PATH_BASE}/auth
|
||||
PATH_SSH_HOST=${PATH_BASE}/ssh.host
|
||||
PATH_SSH_HOST=${PATH_BASE}/ssh
|
||||
|
||||
WEBDAV_PORT=${WEBDAV_PORT:-8080}
|
||||
STATS_PORT=${STATS_PORT:-8081}
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
echo "# Configuring ssh"
|
||||
|
||||
# make sure directory exists
|
||||
mkdir -p "${PATH_SSH_HOST}"
|
||||
|
||||
for keytype in ecdsa rsa ed25519 ; do
|
||||
if [ ! -r "${PATH_SSH_HOST}/ssh_host_${keytype}_key" ] ; then
|
||||
/usr/bin/ssh-keygen -t "${keytype}" -f "${PATH_SSH_HOST}/ssh_host_${keytype}_key" -N ""
|
||||
|
||||
Reference in New Issue
Block a user