make sure python3 is used

This commit is contained in:
Moritz Münch 2021-07-05 20:42:51 +00:00
parent b6bd4c1390
commit 5ba73e0e1e

8
update
View File

@ -16,16 +16,16 @@ cd $path/coinmanager
echo -n "fetching " echo -n "fetching "
git pull -q origin master >/dev/null git pull -q origin master >/dev/null
echo -n "... collecting "
python manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null
echo -n "... bumping " echo -n "... bumping "
version=$(date +"%y%m%d") version=$(date +"%y%m%d")
sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html >/dev/null sed -i "s/[0-9]\{6\}/$version/g" coinc/templates/footer.html >/dev/null
echo -n "... collecting "
python3 manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null
echo -n "... owning " echo -n "... owning "
sudo chmod 775 db.sqlite3 sudo chmod 775 db.sqlite3
sudo chown -R $user:$web_user $path >/dev/null sudo chown -R $user:$web_user $path >/dev/null
echo "... reloading " echo "... reloading "
sudo systemctl reload apache2 >/dev/null sudo systemctl restart apache2 >/dev/null