summaryrefslogtreecommitdiff
path: root/update-all.in
blob: 76261dcad83574b185083baf17b6b1c6cf675d5e (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 -e ${cmd} &
done