Skip to content

Commit

Permalink
Create /srv/mirror in mirror.sh script
Browse files Browse the repository at this point in the history
Otherwise, the "chmod -r 777" gets executed in / !!!

Signed-off-by: Jordi Massaguer Pla <[email protected]>
  • Loading branch information
jordimassaguerpla committed Nov 18, 2020
1 parent 592be2f commit c7922c9
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 c7922c9

Please sign in to comment.