Sha256: 431e4f3e61506f19400148e604e9b2ca597e3156788df7a3526cb82cabd4f677

Contents?: true

Size: 367 Bytes

Versions: 46

Compression:

Stored size: 367 Bytes

Contents

hostname=${1}
check_flag=${2:-deploy}
if [ "${check_flag}" = "check" ]; then
  # Check if gcc is installed
  if ssh -o StrictHostKeyChecking=no root@${hostname} 'gcc --version' 2>/dev/null; then
    echo 'OK'
  else
    echo 'Missing'
  fi
else
  # Install gcc
  ssh -o StrictHostKeyChecking=no root@${hostname} 'apt install -y gcc' 2>/dev/null
  echo 'Installed'
fi

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.2.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.2.3 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.2.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.2.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.2.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.1.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.1.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.0.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.0.3 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.0.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.0.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-33.0.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.18.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.17.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.17.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.16.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.16.3 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.16.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.16.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash
hybrid_platforms_conductor-32.16.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-gcc.bash