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

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/tardiba/pkg_openssh.conf
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
echo_status
. $confdir/openssh.conf
openssh_runit_link() {
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 7 "inject_tardiba_root_key"