bootstrap-vz/bootstrapvz/common/assets/init.d/generate-ssh-hostkeys

15 lines
314 B
Text
Raw Normal View History

2013-07-07 14:58:03 +02:00
#!/bin/sh
# Kept for backward compatibility. OpenSSH Host Keys are generated
# by "ssh-generate-hostkeys.service" systemd unit or "ssh-generate-hostkeys"
# sysvinit script (#431).
2013-07-07 14:58:03 +02:00
set -eu
2013-07-07 14:58:03 +02:00
if [ -z "${1+x}" ] || [ -z "$1" ]; then
PAR="start"
else
PAR="$1"
2013-07-07 14:58:03 +02:00
fi
exec /etc/init.d/ssh-generate-hostkeys "$PAR"