mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
S03hostname: use prepare_conf
This commit is contained in:
parent
ace9bdcf2b
commit
df44e16f88
@ -10,13 +10,7 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
msg_begin "Setting hostname"
|
msg_begin "Setting hostname"
|
||||||
|
|
||||||
if ! [[ -f $hostname_file ]]; then
|
prepare_conf $hostname_file $sys_hostname_file $boot_hostname_file
|
||||||
if [[ -f $boot_hostname_file ]]; then
|
|
||||||
cp $boot_hostname_file $hostname_file
|
|
||||||
elif [[ -f $sys_hostname_file ]]; then
|
|
||||||
cp $sys_hostname_file $hostname_file
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f $hostname_file ]]; then
|
if [[ -f $hostname_file ]]; then
|
||||||
hostname=$(cat $hostname_file)
|
hostname=$(cat $hostname_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user