summaryrefslogtreecommitdiff
path: root/update-all.in
blob: a7764980f4e29bb8561e2b312b2d90ac7aba3b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# update-all version #VERSION#
# updates all clients defined in #ETCDIR#/update-all.conf via local versions of update-me

. #ETCDIR#/update-all.conf

for system in "${systems[@]}"
do
  if [ "${system}" == "localhost" ]
  then
    cmd=""
  else
    cmd="ssh -t -t ${system}"
  fi
  cmd="${cmd} update-me"
  urxvt -title "${system}: update-me" -e ${cmd} &
done