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

@@ -49,6 +49,7 @@ sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py
sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py
$STD wger bootstrap
$STD python3 manage.py collectstatic
rm -rf "$temp_dir"
echo "${RELEASE}" >/opt/wger_version.txt
msg_ok "Finished setting up wger"
@@ -103,13 +104,4 @@ msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
rm -rf "$temp_dir"
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"
motd_ssh
customize
cleanup_lxc