Sha256: 34ce0007d72d38ef76773cac598d03d474ef38303b2fee179905645b48146baa
Contents?: true
Size: 1.33 KB
Versions: 125
Compression:
Stored size: 1.33 KB
Contents
#!/usr/bin/env bash detect_system() { # refer to https://github.com/wayneeseguin/rvm/blob/master/scripts/functions/utility_system unset _system_info _system_lib_type export _system_info _system_lib_type _system_info="$(command uname -a)" _system_lib_type="unknown" case "$(command uname)" in (Linux|GNU*) if [[ -f /etc/lsb-release ]]; then _system_lib_type="debian" elif [[ -f /etc/debian_version ]]; then _system_lib_type="debian" elif [[ -f /etc/os-release ]]; then _system_lib_type="debian" elif [[ -f /etc/system-release ]]; then _system_lib_type="centos" elif [[ -f /etc/centos-release ]]; then _system_lib_type="centos" elif [[ -f /etc/redhat-release ]]; then _system_lib_type="centos" fi ;; #(Darwin) # _system_lib_type="osx" # ;; (*) ;; esac } log_server_details() { echo "Logging ip address" ip addr show echo "Logging ulimit and uname" ulimit -a uname -a echo "Logging repo details" detect_system if [ "${_system_lib_type}" = "debian" ]; then grep -RoPish --include="*.list" "(?<=^deb\s).*?(?=#|$)" /etc/apt else yum repolist all fi echo "Logging release details" cat /etc/*-release echo "Logging flydata versions" gem list flydata flydata version } log_server_details
Version data entries
125 entries across 125 versions & 1 rubygems