From ee31b64ca482674a5f0e717f1c6961b12cca3d48 Mon Sep 17 00:00:00 2001 From: MountyMapleSyrup <159492850+MountyMapleSyrup@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:59:26 -0400 Subject: [PATCH] Update lazylibrarian.sh --- ct/lazylibrarian.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ct/lazylibrarian.sh b/ct/lazylibrarian.sh index b36bf92d..22d56593 100644 --- a/ct/lazylibrarian.sh +++ b/ct/lazylibrarian.sh @@ -56,9 +56,19 @@ function default_settings() { function update_script() { header_info if [[ ! -d /opt/LazyLibrarian/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi +msg_info "Stopping LazyLibrarian" +systemctl stop lazylibrarian +msg_ok "LazyLibrarian Stopped" + msg_info "Updating $APP LXC" git -C /opt/LazyLibrarian pull origin master &>/dev/null msg_ok "Updated $APP LXC" + +msg_info "Starting LazyLibrarian" +systemctl start lazylibrarian +msg_ok "Started LazyLibrarian" + +msg_ok "Updated Successfully" exit }