Browse Source

* injected root key on tardiba

git-svn-id: svn+ssh://svn.opensde.net/home/users/karasz/x5/tardiba/trunk@78 471cc25b-571d-0410-8e29-1f4f9b506cef
master
Nagy Karoly Gabriel 17 years ago
parent
commit
72e1395dd7
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      pkg_openssh.conf

+ 10
- 1
pkg_openssh.conf

@ -17,8 +17,17 @@ echo_status
openssh_runit_link() { openssh_runit_link() {
echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh
echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh
} }
inject_tardiba_root_key() {
mkdir -p $root/root/.ssh
touch $root/root/.ssh/authorized_keys
chmod 755 $root/root/.ssh
cat $base/target/tardiba/99-final/id_rsa.pub > $root/root/.ssh/authorized_keys
chmod 600 $root/root/.ssh/authorized_keys
}
hook_add postinstall 6 "openssh_runit_link" hook_add postinstall 6 "openssh_runit_link"
hook_add postinstall 7 "inject_tardiba_root_key"

Loading…
Cancel
Save