Minor fixes
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# 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 mkdir /media/card
|
||||
|
||||
4
webui.py
4
webui.py
@@ -1,4 +1,3 @@
|
||||
|
||||
#!/usr/bin/python
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
@@ -23,7 +22,7 @@ def control():
|
||||
if (request.POST.get("cardbackup")):
|
||||
os.system("sudo /home/pi/little-backup-box/backup.sh")
|
||||
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")):
|
||||
os.system("sudo shutdown -h now")
|
||||
return """
|
||||
@@ -72,5 +71,4 @@ def control():
|
||||
}
|
||||
</style>
|
||||
"""
|
||||
|
||||
run(host="0.0.0.0", port=8080, debug=True, reloader=True)
|
||||
|
||||
Reference in New Issue
Block a user