feat(install-scripts): Enhanced installation script functionality and added uninstallation support

- Added panel printing functions (print_panel, print_subheader) to install-server.sh and install.sh,

for improved interface display.

- Introduced the ensure_command_access function to automatically link the drip command to system paths (e.g., /usr/local/bin),

improving command availability.

- Added complete uninstallation logic: Added uninstall.sh script, supporting client-side, server-side, or both uninstallation.

- install.sh supports triggering the uninstallation process with the --uninstall parameter and enhanced PATH cleanup mechanism.

- Unified multilingual prompts and optimized user experience.
This commit is contained in:
Gouryella
2025-12-06 13:27:34 +08:00
parent bec13a9e51
commit 522c092d8d
5 changed files with 755 additions and 67 deletions

View File

@@ -64,6 +64,11 @@ bash <(curl -sL https://raw.githubusercontent.com/Gouryella/drip/main/scripts/in
bash <(curl -sL https://raw.githubusercontent.com/Gouryella/drip/main/scripts/install-server.sh)
```
### Uninstall
```bash
bash <(curl -sL https://raw.githubusercontent.com/Gouryella/drip/main/scripts/uninstall.sh)
```
## Usage
### First Time Setup