mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
dropbear:
- use /storage/.cache/dropbear for SSH keys
This commit is contained in:
@@ -4,19 +4,19 @@
|
||||
|
||||
(
|
||||
# Check for the Dropbear RSA key
|
||||
if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
|
||||
if [ ! -f /storage/.cache/dropbear/dropbear_rsa_host_key ] ; then
|
||||
progress "SSH: generating rsa key"
|
||||
|
||||
$IONICE mkdir -p /etc/dropbear
|
||||
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
|
||||
$IONICE mkdir -p /storage/.cache/dropbear
|
||||
dropbearkey -t rsa -f /storage/.cache/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Check for the Dropbear DSS key
|
||||
if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
|
||||
if [ ! -f /storage/.cache/dropbear/dropbear_dss_host_key ] ; then
|
||||
progress "SSH: generating dsa key"
|
||||
|
||||
$IONICE mkdir -p /etc/dropbear
|
||||
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
$IONICE mkdir -p /storage/.cache/dropbear
|
||||
dropbearkey -t dss -f /storage/.cache/dropbear/dropbear_dss_host_key > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
progress "Starting SSH Server"
|
||||
|
||||
@@ -13,5 +13,5 @@ mkdir -p $INSTALL/usr/bin
|
||||
cp -PR $PKG_BUILD/dropbearkey $INSTALL/usr/bin
|
||||
cp -PR $PKG_BUILD/scp $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/config/dropbear
|
||||
ln -s /storage/.config/dropbear $INSTALL/etc/dropbear
|
||||
mkdir -p $INSTALL/etc
|
||||
ln -s /storage/.cache/dropbear $INSTALL/etc/dropbear
|
||||
Reference in New Issue
Block a user