Update install_perccli.sh
This commit is contained in:
parent
8e51780d1d
commit
b535de3996
|
|
@ -15,6 +15,17 @@ SYMLINK_PATH="/usr/local/bin/perccli"
|
|||
echo "Starting PERCCLI installation script..."
|
||||
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
|
||||
echo "1. Downloading $ARCHIVE_NAME..."
|
||||
# Using wget with User-Agent to prevent 403 errors
|
||||
|
|
|
|||
Loading…
Reference in New Issue