Last change
on this file since 2735 was
2274,
checked in by achernya, 12 years ago
|
Set locale to C so sort produces consistent results for rpm-sync
|
-
Property svn:executable set to
*
|
File size:
271 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | export LC_ALL=C |
---|
4 | |
---|
5 | copyTo='/mit/scripts/cron_scripts/rpm-sync/' |
---|
6 | packages=`mktemp --tmpdir rpmlist.XXXXXX` |
---|
7 | rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > $packages |
---|
8 | |
---|
9 | host=`hostname` |
---|
10 | extension='.rpmlist' |
---|
11 | file="$copyTo/$host$extension" |
---|
12 | mv $packages $file |
---|
Note: See
TracBrowser
for help on using the repository browser.