chore(install): remove backup if unattended
This will remove the moonraker.conf.backup if running unattended Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
parent
fab3772e10
commit
dc710d0abe
@ -171,6 +171,9 @@ function install_crowsnest {
|
||||
cp "${moonraker_conf}" "${moonraker_conf}.backup" &&
|
||||
cat "${moonraker_conf}" "${moonraker_update}" > /tmp/moonraker.conf &&
|
||||
cp -rf /tmp/moonraker.conf "${moonraker_conf}"
|
||||
if [ "${UNATTENDED}" == "true" ]; then
|
||||
sudo rm -f "${moonraker_conf}.backup"
|
||||
fi
|
||||
}
|
||||
echo -e "\nInstall webcamd Service ..."
|
||||
## Install Dependencies
|
||||
|
Loading…
x
Reference in New Issue
Block a user