File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# Fetch files specified by path from remote site
3
3
# set -x
4
4
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
# Fetch ctimer json output over ssh, presuming list of site names in text file or as arguments
3
3
# (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)
4
4
# Note: remote base directory is specific to zone.eu
@@ -17,12 +17,12 @@ function remote_ctimer() {
17
17
echo " Doing ${host} ..."
18
18
19
19
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 \
23
23
&& builtin cd ~/domeenid/www.${host} \
24
24
&& /usr/bin/env php ~/bin/ctimer.php . ${host} echo ${cognizant} \
25
- && /usr/bin/ rm -f ~/bin/ctimer.php \
25
+ && rm -f ~/bin/ctimer.php \
26
26
" > " ${host} _$( date +%Y-%m-%d_%H-%M) _ctimer.json"
27
27
28
28
}
You can’t perform that action at this time.
0 commit comments