Sha256: ddbcdd055c2e92df4f079eec76fcbed48c3837b6fb28f3a5c5edc1efd6d80afa

Contents?: true

Size: 387 Bytes

Versions: 46

Compression:

Stored size: 387 Bytes

Contents

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.9.5 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.9.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.9.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.9.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.9.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.8.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.8.3 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.8.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.8.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.8.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.7.4 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.7.3 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.7.2 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.7.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.7.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.6.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.5.1 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.5.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.4.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash
hybrid_platforms_conductor-33.3.0 examples/tutorial/05_extend_with_plugins/dev-servers-conf-repo/install-python.bash