Annotation of /alx-src/tags/alxconf_20060908_11/functions/config_versions.sh
Parent Directory
|
Revision Log
Revision 1623 -
(hide annotations)
(download)
(as text)
Thu Dec 9 09:22:00 2010 UTC (13 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 388 byte(s)
Thu Dec 9 09:22:00 2010 UTC (13 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 388 byte(s)
tagged 'alxconf_20060908_11'
1 | niro | 1582 | # $Header$ |
2 | |||
3 | config_version() | ||
4 | { | ||
5 | local alx_os | ||
6 | local alx_utils | ||
7 | |||
8 | alx_os="$(< /etc/mageversion)" | ||
9 | alx_utils="$(magequery -n alxconfig-ng-alx | sed 's:.*\[\ \(.*\)\ \].*:\1:')" | ||
10 | alx_utils="${alx_utils/alxconfig-ng-alx-}" | ||
11 | |||
12 | mysqldo "insert into client_version(serial,os,utils) values('${ALX_SERIAL}','${alx_os}','${alx_utils}') on duplicate key update os='${alx_os}', utils='${alx_utils}'" | ||
13 | } |