2017-11-27 12:23:08 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2017-12-11 13:56:54 +01:00
|
|
|
echo "Update Weboob..."
|
|
|
|
/home/user/update_weboob.sh
|
2017-11-27 12:23:08 +01:00
|
|
|
|
|
|
|
echo "Building data for Flatisfy..."
|
|
|
|
cd /home/user/app
|
2017-12-11 13:56:54 +01:00
|
|
|
su user -c "python -m flatisfy build-data -v --config /flatisfy/config.json"
|
2017-11-27 12:23:08 +01:00
|
|
|
|
|
|
|
echo "Fetching new housing posts..."
|
2017-12-11 13:56:54 +01:00
|
|
|
cd /home/user/app
|
|
|
|
su user -c "python -m flatisfy import -v --config /flatisfy/config.json"
|
2017-11-27 12:23:08 +01:00
|
|
|
|
|
|
|
echo "Starting web UI..."
|
2017-12-11 13:56:54 +01:00
|
|
|
exec su user -c "python -m flatisfy serve -v --config /flatisfy/config.json"
|