From 7702ffd79fdb568e608c78bd74c1efae1498cf57 Mon Sep 17 00:00:00 2001 From: Muzi Li Date: Sun, 22 Aug 2021 16:47:12 +0800 Subject: [PATCH] chore(*): fix centos system deploy error (#7) --- scripts/common.sh | 2 +- scripts/system.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index 2f04cac..d9d7142 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -132,7 +132,7 @@ common::generate_domain_certs(){ echo ${REGISTRY_DOMAIN}-rootCA.crt >> /etc/ca-certificates.conf update-ca-certificates >/dev/null elif command -v update-ca-trust; then - cp {CERTS_DIR}/rootCA.crt /etc/pki/ca-trust/source/anchors/${REGISTRY_DOMAIN}-rootCA.crt + cp ${CERTS_DIR}/rootCA.crt /etc/pki/ca-trust/source/anchors/${REGISTRY_DOMAIN}-rootCA.crt update-ca-trust force-enable >/dev/null fi } diff --git a/scripts/system.sh b/scripts/system.sh index 113ed5a..f3f9339 100644 --- a/scripts/system.sh +++ b/scripts/system.sh @@ -48,7 +48,7 @@ system::centos::config_repo(){ } system::centos::install_packages(){ - yum_install libseccomp createrepo httpd-tools ${COMMON_PKGS} + system::yum_install libseccomp createrepo httpd-tools ${COMMON_PKGS} } system::debian::disable_firewalld(){