Tardiba - The Tasmanian Devil Database Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/tardiba/pkg_openssh.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. echo_status
  15. . $confdir/openssh.conf
  16. openssh_runit_link() {
  17. echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh
  18. }
  19. inject_tardiba_root_key() {
  20. mkdir -p $root/root/.ssh
  21. touch $root/root/.ssh/authorized_keys
  22. chmod 755 $root/root/.ssh
  23. cat $base/target/tardiba/99-final/id_rsa.pub > $root/root/.ssh/authorized_keys
  24. chmod 600 $root/root/.ssh/authorized_keys
  25. }
  26. hook_add postinstall 6 "openssh_runit_link"
  27. hook_add postinstall 7 "inject_tardiba_root_key"