-
Notifications
You must be signed in to change notification settings - Fork 3
/
launcher.py
19 lines (15 loc) · 653 Bytes
/
launcher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python
#================================================================#
# Implemented by Michael Michael http://www.github.com/michmike
# Under MIT License
# https://raw.githubusercontent.com/michmike/Raspberry-PI-Q/master/LICENSE
#================================================================#
import os
import time
from time import sleep
import datetime
sleep(180) # start by sleeping for 3 mins to allow for wifi/internet connectivity
os.chdir("/home/pi/Raspberry-PI-Q")
os.system("sudo git pull")
os.system("sudo cp /home/pi/Raspberry-PI-Q/*.php /var/www/html/.")
os.system("sudo python3 email_IP_address.py")