#!/usr/bin/env bash
#########################################
#Copyright (c) 2023 ABLECLOUD Co. Ltd.
#
#ccvm 초기화(bootstrap)하는 스크립트
#
#최초작성자 : 배태주 책임
#최초작성일 : 2023-07-12
#########################################
set -x
LOGFILE="/var/log/mold_install_preparation.log"

# hosts=$(grep -v mngt /etc/hosts | grep -v scvm | grep -v pn | grep -v localhost | awk {'print $1'})

dnf -y --nogpgcheck install /opt/install_prepare-4.0.15/rpms/* 2>&1 | tee -a $LOGFILE
pip3 install /opt/install_prepare-4.0.15/pip3/wheel-0.41.1-py3-none-any.whl 2>&1 | tee -a $LOGFILE
pip3 install /opt/install_prepare-4.0.15/pip3/easy_install-66.0.2.tar.gz 2>&1 | tee -a $LOGFILE

echo "Mold install preparation ended!!"  | tee -a $LOGFILE