From 648ba85406120361deb5efdab66c4748a484225e Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Tue, 20 Mar 2018 13:28:21 +0100 Subject: [PATCH] Minor fixes --- install-little-backup-box.sh | 4 +++- webui.py | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install-little-backup-box.sh b/install-little-backup-box.sh index 5319f7e..8c39660 100755 --- a/install-little-backup-box.sh +++ b/install-little-backup-box.sh @@ -13,7 +13,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -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 diff --git a/webui.py b/webui.py index 18f4116..82a16dc 100755 --- a/webui.py +++ b/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(): } """ - -run(host="0.0.0.0",port=8080, debug=True, reloader=True) +run(host="0.0.0.0", port=8080, debug=True, reloader=True)