File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments