TARGET_DIR=$1 if [ -d "${TARGET_DIR}" ] then echo "*******************************" echo -e "\tDirectory Exist !!" echo -e "\t${TARGET_DIR}" echo "*******************************" exit else mkdir $1 fi cp inf-install.yaml "${TARGET_DIR}/install-config.yaml" openshift-install create manifests --dir $TARGET_DIR openshift-install create ignition-configs --dir $TARGET_DIR cp -r $TARGET_DIR/* tftpd_boot/auth/ #chcon -R -t httpd_sys_content_t /var/www/html/okd-inf/ #chown -R apache: /var/www/html/okd-inf/ chmod 755 tftpd_boot/auth