mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 09:03:53 -04:00
Refactor cleanup steps to use cleanup_lxc function (#9354)
This commit is contained in:
@@ -19,15 +19,10 @@ RELEASE=$(echo "$DEB_URL" | grep -oP 'lyrionmusicserver_\K[0-9.]+(?=_amd64\.deb)
|
||||
DEB_FILE="/tmp/lyrionmusicserver_${RELEASE}_amd64.deb"
|
||||
curl -fsSL -o "$DEB_FILE" "$DEB_URL"
|
||||
$STD apt install "$DEB_FILE" -y
|
||||
rm -f "$DEB_FILE"
|
||||
echo "${RELEASE}" >"/opt/lyrion_version.txt"
|
||||
msg_ok "Setup Lyrion Music Server v${RELEASE}"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning up"
|
||||
$STD rm -f "$DEB_FILE"
|
||||
$STD apt -y autoremove
|
||||
$STD apt -y autoclean
|
||||
$STD apt -y clean
|
||||
msg_ok "Cleaned"
|
||||
cleanup_lxc
|
||||
|
||||
Reference in New Issue
Block a user