aboutsummaryrefslogtreecommitdiff
blob: 613db4b02fee594c70d636324cdfe9b4c6375661 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

echo -n 'Updating LDAP user information...'

if [[ $(hostname -f) == *'gentoo.org'* ]] || [[ "$FORCE" == '1' ]]; then
  timeout 180 bin/userinfo-export.rb > _data/userinfo.json
  echo 'done.'
else
  echo 'skipped (not a gentoo.org box, assuming no LDAP available, set FORCE=1 to override).'
fi