From c8a9b8e67316b44f4d7aadbf2cf3b06ab5503ff4 Mon Sep 17 00:00:00 2001 From: st33v Date: Mon, 8 Jan 2018 18:51:43 +1100 Subject: cams now defined in paths.config --- editpix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3