ed9bdf805d
TARGET_ROOT is not a valid key during pre-install step. The error `TARGET_ROOT: unbound variable` raises now. This PR remove the useless TARGET_ROOT in openeuler-minimal. Change-Id: I6fae2ca0e6c6e57a3b195367f2626d9e498e0329
14 lines
441 B
Bash
Executable File
14 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ -n "${DIB_DISTRIBUTION_MIRROR:-}" ]; then
|
|
# Only set the mirror for OS, everything, EPOL and update repositories,
|
|
# The others (debuginfo and source) aren't mirrored since they do not exist on all mirrors
|
|
sed -i "/\(debuginfo\|source\)/! {s#http://repo.openeuler.org#$DIB_DISTRIBUTION_MIRROR#g}" /etc/yum.repos.d/openEuler.repo
|
|
fi
|