# Track On-Premise Jump Script # This script is designed to be downloaded and executed directly via: # wget -O - https://safectory.com/top | bash # Named as .txt file for WordPress upload compatibility. TAR_GZ_URL="https://nexus.beamzone.net:8443/repository/safectory_on_premise/install_track_on_premise.tar.gz" apt-get -y install curl # Try to reuse Nexus credentials from existing config file CONFIG_FILE="/etc/track.config" if [ -f "$CONFIG_FILE" ]; then username="$(grep NEXUS_USER $CONFIG_FILE 2>/dev/null | cut -d\" -f2)" password="$(grep NEXUS_PASS $CONFIG_FILE 2>/dev/null | cut -d\" -f2)" fi if [ -z "$username" ]; then read -p "Enter Nexus username: " username