INNER CODE UNIT · Shell

distro

enginyoyen/ansible-best-practises · extensions/setup/setup.sh:29

    distro=$(lsb_release -i)
    if [[ $distro == *"Ubuntu"* ]] || [[ $distro == *"Debian"* ]] ;then
        msg_warning "Your running Debian based linux.\n You might need to install 'sudo apt-get install build-essential python-dev\n."
        # TODO: check if ubuntu and install build-essential, and python-dev
    else
        msg_warning "Your linux system was not test"
    fi
fi


# Check if root
# Since we need to make sure paths are okay we need to run as normal user he will use ansible
[[ "$(whoami)" == "root" ]] && msg_exit "Please run as a normal user not root"

# Check python
if ! command -v python3 &> /dev/null; then
    msg_exit "Python3 is not installed or is not in your path. Please install Python and try again"
fi

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…