summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorst33v <github@f3rr3t.com>2018-01-08 18:51:43 +1100
committerst33v <github@f3rr3t.com>2018-01-08 18:51:43 +1100
commitc8a9b8e67316b44f4d7aadbf2cf3b06ab5503ff4 (patch)
treea8ae4b4fffcac1998086337f6fcfc97033a71356
parent13a48d1911ffec35dec0067345f81fc67ca2a361 (diff)
cams now defined in paths.config
-rwxr-xr-xeditpix.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/editpix.sh b/editpix.sh
index a8eaeb7..b399832 100755
--- a/editpix.sh
+++ b/editpix.sh
@@ -5,6 +5,7 @@
########### Constants ##################
web="example.com:/path/to/remote/camrootdir" # web server. configured in paths.config
thisdir="/path/to/cams" # this directory (on this computer) Configured in paths.config
+camlist="cam1 cam2 and_so_on" # cams to monitor
if [ -e /usr/local/share/editpix/paths.config ]; then
. /usr/local/share/editpix/paths.config
else echo "paths.config does not exist, see readme"; exit 1
@@ -12,7 +13,7 @@ fi
########### end Consts ################
# cam names in an array:
-declare -a camz=(neatherd lucerne)
+declare -a camz=(${camlist})
cd ${thisdir} # root directory for uploaded pix