From dc710d0abe07d2b5e6c5385535d61ecd833455d2 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Sat, 28 May 2022 10:51:41 +0200 Subject: [PATCH] chore(install): remove backup if unattended This will remove the moonraker.conf.backup if running unattended Signed-off-by: Stephan Wendel --- tools/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/install.sh b/tools/install.sh index 0a52802..3da6a06 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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