Last change
on this file since 1969 was
1640,
checked in by achernya, 14 years ago
|
Changed /bin/bash to /bin/sh and mailx to mail for rpm sync as suggested by geofft and quentin
|
-
Property svn:executable set to
*
|
File size:
254 bytes
|
Rev | Line | |
---|
[1640] | 1 | #!/bin/sh |
---|
[1639] | 2 | |
---|
| 3 | copyTo='/mit/scripts/cron_scripts/rpm-sync/' |
---|
| 4 | packages=`mktemp --tmpdir rpmlist.XXXXXX` |
---|
| 5 | rpm -qa --queryformat '%{NAME}.%{ARCH}\n' | sort | uniq > $packages |
---|
| 6 | |
---|
| 7 | host=`hostname` |
---|
| 8 | extension='.rpmlist' |
---|
| 9 | file="$copyTo/$host$extension" |
---|
| 10 | mv $packages $file |
---|
Note: See
TracBrowser
for help on using the repository browser.