mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
/etc/init.d/base: ensure target directory exists
This commit is contained in:
parent
7e37c2ac92
commit
fb6cf25241
@ -55,6 +55,7 @@ prepare_conf() {
|
||||
fi
|
||||
|
||||
if [[ ! -e "${actual_conf}" && -e "${system_conf}" ]]; then
|
||||
mkdir -p $(dirname "${actual_conf}")
|
||||
cp "${system_conf}" "${actual_conf}"
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user