fix backup path; change sftp port; fetch know hosts for domain and IP
This commit is contained in:
parent
812ce26a0c
commit
7212a69d1d
4 changed files with 11 additions and 7 deletions
|
@ -43,10 +43,8 @@ if [[ ! -f ./.env ]]; then
|
|||
fi
|
||||
|
||||
# Check if ssh key already exists, otherwise generate one
|
||||
if [[ ! -f ./data/restic/ssh/id_ed25519 ]]; then
|
||||
[[ ! -d ./data/restic/ssh/ ]] && mkdir -p ./data/restic/ssh/
|
||||
ssh-keygen -t ed25519 -C "sso.base23.de" -f ./data/restic/ssh/id_ed25519
|
||||
fi
|
||||
[[ ! -d ./data/restic/ssh/ ]] && mkdir -p ./data/restic/ssh/
|
||||
[[ ! -f ./data/restic/ssh/id_ed25519 ]] && ssh-keygen -t ed25519 -C "sso.base23.de" -f ./data/restic/ssh/id_ed25519
|
||||
|
||||
# Generate dhparam, if not existing
|
||||
[[ ! -d ./data/nginx/certs ]] && mkdir -p ./data/nginx/certs && chmod 700 ./data/nginx/certs && chown 101:101 ./data/nginx/certs || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue