Skip to content

Commit d58bb04

Browse files
committed
remote fixes
remove presumed util locations, was bad idea
1 parent 86e348e commit d58bb04

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ctimer_fetch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Fetch files specified by path from remote site
33
#set -x
44

ctimer_remote

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Fetch ctimer json output over ssh, presuming list of site names in text file or as arguments
33
# (and sites in .ssh/config - see https://github.com/zone-eu/zone-docs/blob/master/articles/eng/SSH-config-and-fs-from-zone-api.md)
44
# Note: remote base directory is specific to zone.eu
@@ -17,12 +17,12 @@ function remote_ctimer() {
1717
echo "Doing ${host} ..."
1818

1919
ssh "$host" "\
20-
/usr/bin/mkdir -p ~/bin \
21-
&& /usr/bin/wget -q https://raw.githubusercontent.com/zone-eu/ctimer/master/ctimer.php -O ~/bin/ctimer.php \
22-
&& /usr/bin/chmod +x ~/bin/ctimer.php \
20+
mkdir -p ~/bin \
21+
&& wget -q https://raw.githubusercontent.com/zone-eu/ctimer/master/ctimer.php -O ~/bin/ctimer.php \
22+
&& chmod +x ~/bin/ctimer.php \
2323
&& builtin cd ~/domeenid/www.${host} \
2424
&& /usr/bin/env php ~/bin/ctimer.php . ${host} echo ${cognizant} \
25-
&& /usr/bin/rm -f ~/bin/ctimer.php \
25+
&& rm -f ~/bin/ctimer.php \
2626
" >"${host}_$(date +%Y-%m-%d_%H-%M)_ctimer.json"
2727

2828
}

0 commit comments

Comments
 (0)