Skip to content
Snippets Groups Projects
Commit 274bd596 authored by Markus Gothe's avatar Markus Gothe :ok_hand:
Browse files

openssh: Don't unnecessary wear out NAND memory.

parent 0d86a696
No related branches found
No related tags found
1 merge request!107openssh: Don't unnecessary wear out NAND memory.
......@@ -286,7 +286,8 @@ set_params()
set_root_login "${RootLogin}" "${RootPasswordAuth}"
# finalize
cp "${TEMPCONF}" "${ConfigFile}"
mkdir -p $(dirname "${ConfigFile}")
mv "${TEMPCONF}" "${ConfigFile}"
}
sshd_instance()
......@@ -310,7 +311,7 @@ sshd_instance()
}
local PidFile="/var/run/${NAME}.${Cfg}.pid"
local ConfigFile="/etc/ssh/${NAME}.${Cfg}.conf"
local ConfigFile="/var/etc/${NAME}.${Cfg}.conf"
# create config file
set_params "$ConfigFile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment