Skip to content

Commit

Permalink
Merge pull request #799 from jordimassaguerpla/fix_mirror_script_crea…
Browse files Browse the repository at this point in the history
…te_dirs

Create /srv/mirror in mirror.sh script
  • Loading branch information
jordimassaguerpla authored Nov 18, 2020
2 parents 592be2f + c7922c9 commit a1b9099
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/mirror/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ if [ ! -z "${MIRROR_IMAGES}" -o ! -z "${REFRESH_SCC_DATA}" ]; then
source ${CONFIG}
fi

if [ ! -d /srv/mirror ];then
mkdir -p /srv/mirror
fi

cd /srv/mirror
if [ ! -z "${MIRROR_IMAGES}" ]; then mirror_images; fi
if [ ! -z "${REFRESH_SCC_DATA}" ]; then refresh_scc_data; fi
Expand Down

0 comments on commit a1b9099

Please sign in to comment.