Last change
on this file since 1639 was
1639,
checked in by achernya, 14 years ago
|
Fixed ticket 84, created system for checking if scripts servers are in sync
|
-
Property svn:executable set to
*
|
File size:
256 bytes
|
Rev | Line | |
---|
[1639] | 1 | #!/bin/bash |
---|
| 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.