[grobi] add in final logic for link setup
This commit is contained in:
parent
fab2e5c0e1
commit
f9db2dbd16
1 changed files with 14 additions and 2 deletions
|
@ -80,5 +80,17 @@ for ARCH in ${ARCHES}; do
|
||||||
done
|
done
|
||||||
|
|
||||||
## Set up the builds so they are pointing to the last working version
|
## Set up the builds so they are pointing to the last working version
|
||||||
rm -f ${HOMEDIR}/koji/latest
|
cd ${HOMEDIR}/koji/
|
||||||
ln -s ${DATEDIR} ${HOMEDIR}/koji/latest
|
if [[ -e latest ]]; then
|
||||||
|
if [[ -h latest ]]; then
|
||||||
|
rm -f latest
|
||||||
|
else
|
||||||
|
echo "Unable to remove latest. it is not a symbolic link"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "No latest link found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Linking ${DATE} to latest"
|
||||||
|
ln -s ${DATE} ${HOMEDIR}/koji/latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue