Refactor cleanup steps to use cleanup_lxc function (#9354)

This commit is contained in:
CanbiZ
2025-11-22 17:27:13 +01:00
committed by GitHub
parent 89198b0601
commit afe330173e
307 changed files with 522 additions and 1971 deletions

View File

@@ -33,6 +33,7 @@ temp_file=$(mktemp)
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
$STD unzip -j $temp_file '*/**' -d /opt/UmlautAdaptarr
rm -f $temp_file
echo "${RELEASE}" >"/opt/UmlautAdaptarr_version.txt"
msg_ok "Installation completed"
@@ -120,10 +121,4 @@ msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
rm -f $temp_file
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"
cleanup_lxc