forked from hitachienergy/epiphany
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip downloading when image exists hitachienergy#536
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...nsible/playbooks/roles/repository/files/client/RedHat/create-enabled-system-repos-list.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/bash -eu | ||
|
||
ENABLED_REPOS_FILE=/var/tmp/enabled-system-repos.txt | ||
ENABLED_REPOS_LIST_FILE=/var/tmp/enabled-system-repos.txt | ||
|
||
if [ ! -f "$ENABLED_REPOS_FILE" ]; then | ||
if [ ! -f "$ENABLED_REPOS_LIST_FILE" ]; then | ||
# 'yum repoinfo' or 'yum repolist -v' not used since they may require Internet access, even with --cacheonly | ||
yum --cacheonly repolist enabled | awk '/^$/ {next}; /repo id/ {f=1; next}; /^repolist/ {f=0}; f {sub(/\/.*/,""); print $1}' > $ENABLED_REPOS_FILE | ||
yum --cacheonly repolist enabled | awk '/^$/ {next}; /repo id/ {f=1; next}; /^repolist/ {f=0}; f {sub(/\/.*/,""); print $1}' > $ENABLED_REPOS_LIST_FILE | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters