Fix path. Minor tweaks

This commit is contained in:
Dmitri Popov
2018-03-28 09:45:23 +02:00
parent 97e09bada8
commit cec7fdc374
2 changed files with 6 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ import os
@route('/')
@route('/', method='POST')
def remote_control():
st = os.statvfs("/home/dmpop")
st = os.statvfs("/home")
free = "%.2f" % float((st.f_bavail * st.f_frsize)/1.073741824e9)
if (request.POST.get("cardbackup")):
os.system("sudo /home/pi/little-backup-box/scripts/card-backup.sh")