sahara-image-elements/elements/hadoop-mapr/post-install.d/99-update-repository

12 lines
221 B
Bash
Executable File

#!/bin/bash
set -eux
DISTRO=$(lsb_release -is || :)
if [ "$DISTRO" = "Ubuntu" ]; then
apt-get update
elif [ "$DISTRO" = 'CentOS' -o "$DISTRO" = 'RedHatEnterpriseServer' ]; then
yum clean all && yum repolist
fi