kopia lustrzana https://github.com/alecmuffett/eotk
enable spotpush from eotk_home, nits
rodzic
fe78914594
commit
049910dc94
11
eotk
11
eotk
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue