#!/bin/bash set -e echo "cloning ..." git pull -q origin master >/dev/null echo "collecting ..." cd /home/willipink/coinmanager/coinmanager pipenv run python manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null 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 echo "reloading ..." sudo systemctl reload apache2 >/dev/null