Updated setup.sh script to run createrepo and change ownership to awips:fxalpha

This commit is contained in:
Tiffany Meyer 2021-05-05 14:34:54 -04:00
parent 29dfd64bbb
commit a879ebac9d

View file

@ -56,8 +56,8 @@ date=$(date +%Y%m%d)
if [[ $(whoami) == "awips" ]]; then # local build
mv dist/${os_version}-dev dist/${os_version}-dev-${date}
su - -c "createrepo -g ../comps.xml dist/${os_version}-dev"
sudo chown -R awips:fxalpha dist/${os_version}-dev
sudo su - -c "createrepo -g /awips2/repo/awips2/dist/comps.xml /awips2/repo/awips2/dist/${os_version}-dev-${date}/"
sudo chown -R awips:fxalpha dist/${os_version}-dev-${date}
#repomanage -k1 --old dist/${os_version}-dev | xargs rm -f
#
# Push to web server