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:
Stephan Wendel 2022-05-28 10:51:41 +02:00
parent fab3772e10
commit dc710d0abe
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

@ -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