Download scripts/install/base-install.sh from hftestx/2798e29d: direct link, hf CLI and curl.
- Browser
- Download file 899 Bytes
-
https://huggingface.co/spaces/hftestx/2798e29d/resolve/main/scripts/install/base-install.sh
- Command line
-
hf download hf://spaces/hftestx/2798e29d/scripts/install/base-install.sh
-
curl -L -o base-install.sh https://huggingface.co/spaces/hftestx/2798e29d/resolve/main/scripts/install/base-install.sh
899 Bytes
| set -e | |
| # Function for logging | |
| log() { | |
| echo "[$(date '+%Y-%m-%d %H:%M:%S')] [BASE] $*" | |
| } | |
| # Function for cleanup | |
| cleanup() { | |
| log "Performing base installation cleanup..." | |
| rm -rf \ | |
| /var/lib/apt/lists/* \ | |
| /var/tmp/* \ | |
| /var/log/* | |
| # Don't clean /tmp/* as it may contain installation scripts for other services | |
| } | |
| # Trap to ensure cleanup on exit | |
| trap cleanup EXIT | |
| log "Starting base system dependencies installation..." | |
| log "Updating package lists..." | |
| apt-get update | |
| log "Installing essential system dependencies..." | |
| apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| gnupg \ | |
| lsb-release \ | |
| wget \ | |
| unzip \ | |
| tar \ | |
| gzip | |
| log "Installing process management tools..." | |
| apt-get install -y --no-install-recommends \ | |
| supervisor \ | |
| gettext-base | |
| log "Base system installation completed successfully" | |