diff --git a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-epirepo-client.sh b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-epirepo-client.sh index 7483000e28..24124a975a 100644 --- a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-epirepo-client.sh +++ b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/client/RedHat/disable-epirepo-client.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu yum-config-manager --disable epirepo -yum clean all --enablerepo=epirepo --disablerepo='*' +yum clean all --disablerepo='*' --enablerepo=epirepo yum repolist \ No newline at end of file diff --git a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/download-requirements.sh b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/download-requirements.sh index 1a46e6c697..0512f39f49 100644 --- a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/download-requirements.sh +++ b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/centos-7/download-requirements.sh @@ -60,17 +60,6 @@ create_directory() { fi } -# params: -display_seconds() { - local seconds=$1 - local h=$((seconds/3600)) - local m=$((seconds%3600/60)) - local s=$((seconds%60)) - (( h > 0 )) && printf '%dh ' $h - (( m > 0 )) && printf '%dm ' $m - printf '%ds' $s -} - # params: download_file() { local file_url="$1" @@ -590,4 +579,4 @@ remove_installed_packages "$INSTALLED_PACKAGES_FILE_PATH" readonly END_TIME=$(date +%s) -echol "$(basename $0) finished, execution time: $(display_seconds $((END_TIME-START_TIME)))" \ No newline at end of file +echol "$(basename $0) finished, execution time: $(date -u -d @$((END_TIME-START_TIME)) +'%T')" \ No newline at end of file diff --git a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/download-requirements.sh b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/download-requirements.sh index 7d504a1f13..73e8de23c5 100644 --- a/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/download-requirements.sh +++ b/core/src/epicli/data/common/ansible/playbooks/roles/repository/files/download-requirements/redhat-7/download-requirements.sh @@ -60,17 +60,6 @@ create_directory() { fi } -# params: -display_seconds() { - local seconds=$1 - local h=$((seconds/3600)) - local m=$((seconds%3600/60)) - local s=$((seconds%60)) - (( h > 0 )) && printf '%dh ' $h - (( m > 0 )) && printf '%dm ' $m - printf '%ds' $s -} - # params: download_file() { local file_url="$1" @@ -613,4 +602,4 @@ remove_installed_packages "$INSTALLED_PACKAGES_FILE_PATH" readonly END_TIME=$(date +%s) -echol "$(basename $0) finished, execution time: $(display_seconds $((END_TIME-START_TIME)))" \ No newline at end of file +echol "$(basename $0) finished, execution time: $(date -u -d @$((END_TIME-START_TIME)) +'%T')" \ No newline at end of file