Skip to content

Commit f4c7303

Browse files
committed
added reseed script
1 parent 8f92e4b commit f4c7303

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: cvmfs_deployment/reseed_arch.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash -ex
2+
# bootstrap - reseed an existing architecture
3+
4+
INSTALL_PATH=$1
5+
SCRAM_ARCH=$2
6+
RPMS_REPO=$3
7+
8+
# check if RPMS_REPO matches the one in install path
9+
if [ -f ${INSTALL_PATH}/common/cmspkg ] && [ $(grep "repository ${RPMS_REPO} " ${INSTALL_PATH}/common/cmspkg | wc -l) -eq 0 ] ; then
10+
echo "Install path is bootstraped for another RPM REPO, abort"
11+
exit 1
12+
fi
13+
14+
if [ -f ${INSTALL_PATH}/${SCRAM_ARCH}/cms/cms-common/1.0/etc/profile.d/init.sh ] ; then
15+
rm -f ${INSTALL_PATH}/bootstrap.sh
16+
OPTS=""
17+
if [ "${USE_DEV_CMSPKG}" = "true" ] ; then
18+
OPTS="-dev"
19+
fi
20+
wget --tries=5 --waitretry=60 -O ${INSTALL_PATH}/bootstrap.sh http://cmsrep.cern.ch/cmssw/bootstrap.sh
21+
source $(dirname $0)/../dockerrun.sh
22+
export CMSPKG_OS_COMMAND=""
23+
dockerrun "sh -ex ${INSTALL_PATH}/bootstrap.sh -a ${SCRAM_ARCH} ${OPTS} -repository ${RPMS_REPO} -path ${INSTALL_PATH} reseed"
24+
fi

0 commit comments

Comments
 (0)