blob: 6d7a19adfb34bf473d870dc3bc3859c2bf111cac (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
set -e
scp plot.py read_sensors.py water_the_plant create_backup make_photo index.html history.html *.png robert@waterpi:
ssh robert@waterpi -C '\
sudo cp index.html history.html *.png /var/www/html; \
sudo chown www-data:www-data /var/www/html/*.html /var/www/html/*.png; \
sudo cp plot.py read_sensors.py create_backup make_photo plot.py read_temperature.py water_the_plant /usr/local/bin'
|