fix: apply remaining CrazyWolf13 inline suggestions
This commit is contained in:
parent
9c17e368b1
commit
cf7b97bcdc
@ -30,7 +30,6 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then
|
if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop calibre-web
|
systemctl stop calibre-web
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|||||||
@ -37,10 +37,9 @@ cd /opt/calibre-web
|
|||||||
$STD pip3 install --no-cache-dir -r requirements.txt
|
$STD pip3 install --no-cache-dir -r requirements.txt
|
||||||
msg_ok "Installed Python Dependencies"
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
mkdir -p /opt/calibre-web/data
|
|
||||||
msg_ok "Created Data Directory"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
mkdir -p /opt/calibre-web/data
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Calibre-Web Service
|
Description=Calibre-Web Service
|
||||||
@ -64,8 +63,7 @@ motd_ssh
|
|||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
$STD apt -y autoremove
|
apt -y autoremove
|
||||||
$STD apt -y autoclean
|
apt -y autoclean
|
||||||
msg_ok "Cleaned"
|
|
||||||
|
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user