fix: apply remaining CrazyWolf13 inline suggestions

This commit is contained in:
mikolaj92 2026-02-10 10:49:16 +01:00
parent 9c17e368b1
commit cf7b97bcdc
2 changed files with 4 additions and 7 deletions

View File

@ -30,7 +30,6 @@ function update_script() {
fi
if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then
msg_info "Stopping Service"
systemctl stop calibre-web
msg_ok "Stopped Service"

View File

@ -37,10 +37,9 @@ cd /opt/calibre-web
$STD pip3 install --no-cache-dir -r requirements.txt
msg_ok "Installed Python Dependencies"
mkdir -p /opt/calibre-web/data
msg_ok "Created Data Directory"
msg_info "Creating Service"
mkdir -p /opt/calibre-web/data
cat <<EOF
[Unit]
Description=Calibre-Web Service
@ -64,8 +63,7 @@ motd_ssh
customize
msg_info "Cleaning up"
$STD apt -y autoremove
$STD apt -y autoclean
msg_ok "Cleaned"
apt -y autoremove
apt -y autoclean
cleanup_lxc