enable spotpush from eotk_home, nits

pull/35/head
Alec Muffett 2019-02-08 09:37:59 +00:00
rodzic fe78914594
commit 049910dc94
2 zmienionych plików z 8 dodań i 5 usunięć

11
eotk
Wyświetl plik

@ -220,14 +220,17 @@ ListProjects() {
# TODO(alecm) resolve potential clashes between project names and
# various other directory names ending in ".d"; maybe use ".proj"?
SpotPush() {
for filename in "$@" ; do
SpotPush() { # push any file named FOO from $EOTK_HOME and/or projects.d
for filename in "$@" ; do # GENERATE/USE ABSOLUTE PATHS
files=`find $project_dir -type f -name "$filename" | sort`
# special: check top-level dir, too...
tldfile=${EOTK_HOME}/$filename # USE ABSOLUTE PATHS
test -f $tldfile && files="$files $tldfile"
for host in $cloud_hosts ; do
test "x$host" = "xlocalhost" && continue # skip self
echo :::: push $host ::::
echo :::: push $host $filename ::::
for filepath in $files ; do
Print copying $filepath to $host
Print pushing $host:$filepath
scp -p $filepath $host:$filepath || exit 1
done
done

Wyświetl plik

@ -11,7 +11,7 @@
#
# 2) insert the following command into the cron file for user "%USER%"
#
# 00 08 * * 1 exec %EOTK_HOME%/eotk-houskeeping.sh
# 00 08 * * 1 exec %EOTK_HOME%/eotk-housekeeping.sh
EOTK_HOME=%EOTK_HOME%
EOTK_USER=%USER% # hardcode owner of the directory & files