Minor fixes
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
sudo apt update && sudo apt dist-upgrade -y && sudo apt install acl git-core screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl python-pip -y
|
sudo apt update
|
||||||
|
sudo apt dist-upgrade -y
|
||||||
|
sudo apt install acl git-core screen rsync exfat-fuse exfat-utils ntfs-3g gphoto2 libimage-exiftool-perl python-pip -y
|
||||||
sudo pip install bottle
|
sudo pip install bottle
|
||||||
|
|
||||||
sudo mkdir /media/card
|
sudo mkdir /media/card
|
||||||
|
|||||||
4
webui.py
4
webui.py
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@@ -23,7 +22,7 @@ def control():
|
|||||||
if (request.POST.get("cardbackup")):
|
if (request.POST.get("cardbackup")):
|
||||||
os.system("sudo /home/pi/little-backup-box/backup.sh")
|
os.system("sudo /home/pi/little-backup-box/backup.sh")
|
||||||
if (request.POST.get("camerabackup")):
|
if (request.POST.get("camerabackup")):
|
||||||
os.system("sudo /home/pi/little-backup-box/backup.sh")
|
os.system("sudo /home/pi/little-backup-box/gphoto-backup.sh")
|
||||||
if (request.POST.get("shutdown")):
|
if (request.POST.get("shutdown")):
|
||||||
os.system("sudo shutdown -h now")
|
os.system("sudo shutdown -h now")
|
||||||
return """
|
return """
|
||||||
@@ -72,5 +71,4 @@ def control():
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
run(host="0.0.0.0", port=8080, debug=True, reloader=True)
|
run(host="0.0.0.0", port=8080, debug=True, reloader=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user