coinmanager/update

26 lines
508 B
Plaintext
Raw Normal View History

#!/bin/bash
2020-05-19 12:49:31 +00:00
set -e
web_user="www-data"
2022-07-08 13:12:28 +02:00
path="/opt/coinmanager"
cd $path/coinmanager
echo -n "fetching "
2020-06-17 06:10:46 +02:00
git pull -q origin master >/dev/null
2020-06-19 11:56:39 +00:00
echo -n "... bumping "
2020-06-19 11:29:51 +00:00
version=$(date +"%y%m%d")
2021-07-12 09:13:57 +00:00
sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html
2020-06-19 11:29:51 +00:00
2021-07-05 20:42:51 +00:00
echo -n "... collecting "
2022-07-08 13:12:28 +02:00
pipenv run python3 manage.py collectstatic --settings coinmanager.production_settings --no-input
2021-07-05 20:42:51 +00:00
2020-06-19 11:56:39 +00:00
echo -n "... owning "
2022-07-08 13:12:28 +02:00
chmod 775 db.sqlite3
chown -R $web_user:$web_user $path
2020-05-31 21:39:17 +00:00
2020-06-19 11:56:39 +00:00
echo "... reloading "
2022-07-08 13:12:28 +02:00
systemctl reload apache2