mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
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:
@@ -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"
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user