Skip to content

Commit 7a18c43

Browse files
committed
Using curl instead of wget, closes #5
1 parent f14c804 commit 7a18c43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

defaults.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ fi
99
mkdir -p $directory/group_vars
1010
mkdir -p $directory/host_vars
1111

12-
wget -q -P $directory -nc \
13-
https://raw.githubusercontent.com/perfsonar/ansible-playbook-perfsonar/master/inventory/hosts
12+
if ! [ -e "$directory/hosts" ]; then
13+
curl -s -o "$directory/hosts" \
14+
"https://raw.githubusercontent.com/perfsonar/ansible-playbook-perfsonar/master/inventory/hosts"
15+
fi
1416

1517
if ! [ -f $directory/group_vars/ps_archive.yml ]; then
1618
cp roles/ansible-role-perfsonar-archive/defaults/main.yml \

0 commit comments

Comments
 (0)