Skip to content

Enhance uninstall script with detailed cleanup steps#8

Merged
jhd3197 merged 2 commits intomainfrom
dev
Jan 28, 2026
Merged

Enhance uninstall script with detailed cleanup steps#8
jhd3197 merged 2 commits intomainfrom
dev

Conversation

@jhd3197
Copy link
Owner

@jhd3197 jhd3197 commented Jan 28, 2026

Expanded the uninstall process to explicitly list all components and directories that will be removed, including nginx configs and ServerKit-specific data. Added informational messages and ensured nginx is reloaded if necessary. Clarified that system packages are not removed automatically.

jhd3197 and others added 2 commits January 27, 2026 21:54
Expanded the uninstall process to explicitly list all components and directories that will be removed, including nginx configs and ServerKit-specific data. Added informational messages and ensured nginx is reloaded if necessary. Clarified that system packages are not removed automatically.
Copilot AI review requested due to automatic review settings January 28, 2026 02:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the uninstall script with comprehensive cleanup steps and user-friendly informational messages. It provides transparency about what will be removed during uninstallation and ensures proper cleanup of nginx configurations.

Changes:

  • Added detailed pre-uninstall message listing all components that will be removed
  • Implemented removal of ServerKit configuration directories (/etc/serverkit, /var/serverkit)
  • Added nginx site configuration cleanup with safe reload logic
  • Included post-uninstall notice clarifying that system packages are not automatically removed
  • Version bumped from 1.2.73 to 1.2.74

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
serverkit Enhanced uninstall function with detailed informational messages, nginx config cleanup, and comprehensive directory removal
VERSION Version increment from 1.2.73 to 1.2.74

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

echo " - Frontend Docker container and images"
echo " - Installation directory ($INSTALL_DIR)"
echo " - Configuration (/etc/serverkit)"
echo " - App data (/var/serverkit)"
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory /var/lib/serverkit is being removed (line 523) but is not mentioned in the informational list above. This directory stores uptime history data and should be included in the list for completeness. Consider adding a line like "- Data files (/var/lib/serverkit)" to the informational message.

Suggested change
echo " - App data (/var/serverkit)"
echo " - App data (/var/serverkit)"
echo " - Data files (/var/lib/serverkit)"

Copilot uses AI. Check for mistakes.
@jhd3197 jhd3197 merged commit ca9e37e into main Jan 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants