mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Removed generate-ssh-hostkeys stub-script left for backward compatibility
This commit is contained in:
parent
d640311ab6
commit
c3739b875b
2 changed files with 0 additions and 20 deletions
|
@ -1,14 +0,0 @@
|
|||
#!/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).
|
||||
|
||||
set -eu
|
||||
|
||||
if [ -z "${1+x}" ] || [ -z "$1" ]; then
|
||||
PAR="start"
|
||||
else
|
||||
PAR="$1"
|
||||
fi
|
||||
|
||||
exec /etc/init.d/ssh-generate-hostkeys "$PAR"
|
|
@ -45,18 +45,12 @@ class AddSSHKeyGeneration(Task):
|
|||
ssh_keygen_host_service = os.path.join(systemd_dir, 'ssh-generate-hostkeys.service')
|
||||
ssh_keygen_host_service_dest = os.path.join(info.root, 'etc/systemd/system/ssh-generate-hostkeys.service')
|
||||
|
||||
ssh_keygen_host_initscript = os.path.join(init_scripts_dir, 'generate-ssh-hostkeys')
|
||||
ssh_keygen_host_initscript_dest = os.path.join(info.root, 'etc/init.d/generate-ssh-hostkeys')
|
||||
|
||||
ssh_keygen_host_script = os.path.join(assets, 'ssh-generate-hostkeys')
|
||||
ssh_keygen_host_script_dest = os.path.join(info.root, 'usr/local/sbin/ssh-generate-hostkeys')
|
||||
|
||||
# Copy files over
|
||||
shutil.copy(ssh_keygen_host_service, ssh_keygen_host_service_dest)
|
||||
|
||||
shutil.copy(ssh_keygen_host_initscript, ssh_keygen_host_initscript_dest)
|
||||
os.chmod(ssh_keygen_host_initscript_dest, 0755)
|
||||
|
||||
shutil.copy(ssh_keygen_host_script, ssh_keygen_host_script_dest)
|
||||
os.chmod(ssh_keygen_host_script_dest, 0750)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue