Skip to content
Snippets Groups Projects
Commit 3842c05e authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

only change permissions when permitted

parent 0c8da890
No related branches found
No related tags found
1 merge request!67Resolve "Tweak singularity container deploy"
...@@ -108,6 +108,7 @@ if [ ${SINGULARITY_VERSION:0:1} = 2 ]; then ...@@ -108,6 +108,7 @@ if [ ${SINGULARITY_VERSION:0:1} = 2 ]; then
INSIF=`basename ${SIF}` INSIF=`basename ${SIF}`
singularity pull --name "${INSIF}" docker://eicweb/$CONTAINER:$VERSION singularity pull --name "${INSIF}" docker://eicweb/$CONTAINER:$VERSION
mv ${INSIF} $SIF mv ${INSIF} $SIF
chmod +x ${SIF}
unset INSIF unset INSIF
fi fi
## we are in sane territory, yay! ## we are in sane territory, yay!
...@@ -132,6 +133,7 @@ else ...@@ -132,6 +133,7 @@ else
./install.py -f -c $CONTAINER -v $VERSION . ./install.py -f -c $CONTAINER -v $VERSION .
INSIF=lib/`basename ${SIF}` INSIF=lib/`basename ${SIF}`
mv $INSIF $SIF mv $INSIF $SIF
chmod +x ${SIF}
## cleanup ## cleanup
popd popd
rm -rf $tmp_dir rm -rf $tmp_dir
...@@ -146,7 +148,6 @@ if [ -z "$SIF" -o -z "$GOOD_SIF" ]; then ...@@ -146,7 +148,6 @@ if [ -z "$SIF" -o -z "$GOOD_SIF" ]; then
exit 1 exit 1
else else
echo " - Deployed ${CONTAINER} image: $SIF" echo " - Deployed ${CONTAINER} image: $SIF"
chmod +x ${SIF}
fi fi
## We want to make sure the root directory of the install directory ## We want to make sure the root directory of the install directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment