Contents of /alx-src/tags/alxconf-0_6_4_3/functions/config_versions.sh
Parent Directory | Revision Log
Revision 1800 -
(show annotations)
(download)
(as text)
Thu Apr 14 19:29:35 2011 UTC (13 years, 5 months ago) by niro
Original Path: alx-src/branches/alxconf-060/functions/config_versions.sh
File MIME type: application/x-sh
File size: 388 byte(s)
Thu Apr 14 19:29:35 2011 UTC (13 years, 5 months ago) by niro
Original Path: alx-src/branches/alxconf-060/functions/config_versions.sh
File MIME type: application/x-sh
File size: 388 byte(s)
created 0.6.x branch
1 | # $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 | } |