multimail/update.sh

19 lines
227 B
Bash
Raw Normal View History

2020-11-09 13:47:30 +00:00
#!/bin/bash
DIR=$(dirname $0)
function prefix_date(){
while read line
do
echo [$(date)] $line
done
}
function run_update(){
git pull
cd backend
python manage.py migrate
}
run_update | prefix_date > $DIR/update.log