formatting, add version bumping

This commit is contained in:
willipink 2020-06-19 11:29:51 +00:00
parent 2097cfde2f
commit 0514a2d540

12
update
View File

@ -5,12 +5,18 @@ set -e
echo "cloning ..." echo "cloning ..."
git pull origin master >/dev/null git pull origin master >/dev/null
echo "collecting static files ..."
echo "collecting ..."
cd /home/willipink/coinmanager/coinmanager cd /home/willipink/coinmanager/coinmanager
pipenv run python manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null pipenv run python manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null
echo "owning everything ..." echo "bumping ..."
version=$(date +"%y%m%d")
sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html
echo "owning ..."
sudo chown -R willipink:www-data /home/willipink/coinmanager >/dev/null sudo chown -R willipink:www-data /home/willipink/coinmanager >/dev/null
echo "reloading apache ..."
echo "reloading ..."
sudo systemctl reload apache2 >/dev/null sudo systemctl reload apache2 >/dev/null