Update install_perccli.sh

This commit is contained in:
jjorstad2 2025-11-02 21:52:49 +00:00
parent 8e51780d1d
commit b535de3996
1 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,17 @@ SYMLINK_PATH="/usr/local/bin/perccli"
echo "Starting PERCCLI installation script..." echo "Starting PERCCLI installation script..."
echo "Target URL: $PERCCLI_URL" echo "Target URL: $PERCCLI_URL"
# --- Clean Start Logic: Remove previous temporary files/directories if they exist ---
if [ -d "$TEMP_DIR" ]; then
echo "Found old temporary directory '$TEMP_DIR'. Removing for a clean start."
rm -rf "$TEMP_DIR"
fi
if [ -f "$ARCHIVE_NAME" ]; then
echo "Found old archive '$ARCHIVE_NAME'. Removing for a clean start."
rm -f "$ARCHIVE_NAME"
fi
# ----------------------------------------------------------------------------------
# 1. Download the archive # 1. Download the archive
echo "1. Downloading $ARCHIVE_NAME..." echo "1. Downloading $ARCHIVE_NAME..."
# Using wget with User-Agent to prevent 403 errors # Using wget with User-Agent to prevent 403 errors