Changed openssh from using /boot/common/etc/ssh to /boot/common/settings/ssh

Applied with the following Haiku:

Moving from etc
To the common settings dir
Soon depricated?
This commit is contained in:
Scott McCreary
2010-04-14 16:07:07 +00:00
parent 485edf0b8d
commit fde4748886
2 changed files with 5 additions and 5 deletions

View File

@@ -13,14 +13,14 @@
*/
#define HAIKU_USER_SETTINGS_DIRECTORY "/boot/home/config/settings"
#define HAIKU_COMMON_ETC_DIRECTORY "/boot/common/etc"
#define HAIKU_COMMON_SETTINGS_DIRECTORY "/boot/common/settings"
#define HAIKU_COMMON_BIN_DIRECTORY "/boot/common/bin"
#define HAIKU_COMMON_VAR_DIRECTORY "/boot/common/var"
#define HAIKU_COMMON_SERVERS_DIRECTORY "/boot/common/servers"
#define HAIKU_SYSTEM_BIN_DIRECTORY "/boot/system/bin"
#define ETCDIR HAIKU_COMMON_ETC_DIRECTORY
#define ETCDIR HAIKU_COMMON_SETTINGS_DIRECTORY
#ifndef SSHDIR
#define SSHDIR ETCDIR "/ssh"

View File

@@ -2,10 +2,10 @@
# generate SSH host keys
ETCSSHDIR=`finddir B_COMMON_ETC_DIRECTORY`/ssh
mkdir -p ${ETCSSHDIR}
SETTINGSSSHDIR=`finddir B_COMMON_SETTINGS_DIRECTORY`/ssh
mkdir -p ${SETTINGSSSHDIR}
hostKeyDir=${ETCSSHDIR}
hostKeyDir=${SETTINGSSSHDIR}
if [ ! -f "$hostKeyDir/ssh_host_key" ] ; then
ssh-keygen -t rsa1 -f "$hostKeyDir/ssh_host_key" -N ""