Projet de remplacement du "RPiPasserelle" d'Otec.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112131415 |
- #!/bin/sh
-
- # If directory exists don't run the script
- [ ! -d /run/pyheatpump ] && mkdir /run/pyheatpump || exit 0;
-
- # cd /opt/pyheatpump git clone https://git.yannweb.net/cli/pyHeatpump.git
- [ ! -d /opt/pyHeatpump/ ] && echo "Missing /opt/pyheatpump/" && exit 1;
-
- # Database initialization
- sqlite3 -init /opt/pyHeatpump/db/pyheatpump.sql /run/pyheatpump/pyheatpump.sqlite3 \
- || (echo "Failed to initialize database" && exit 1);
-
- # Default configuration setup
- cp /opt/pyHeatpump/config/pyheatpump.prod.ini.dist /run/pyheatpump/pyheatpump.ini \
- || (echo "Failed to initialized configuration file" && exit 1);
|