source: trunk/locker/sbin/rpmlist.sh @ 2843

Last change on this file since 2843 was 2823, checked in by andersk, 5 years ago
rpm-master.sh, rpmlist.sh: Improve shell hygiene
  • Property svn:executable set to *
File size: 287 bytes
Line 
1#!/bin/sh
2set -eu
3
4export LC_ALL=C
5
6copyTo='/mit/scripts/cron_scripts/rpm-sync/'
7packages=$(mktemp --tmpdir rpmlist.XXXXXX)
8rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > "$packages"
9
10host=$(hostname)
11extension='.rpmlist'
12file="$copyTo/$host$extension"
13mv "$packages" "$file"
Note: See TracBrowser for help on using the repository browser.