Contents of /alx-src/tags/alxconf-0_6_4_3/functions/config_versions.sh
Parent Directory | Revision Log
Revision 3501 -
(show annotations)
(download)
(as text)
Tue Apr 17 12:07:30 2012 UTC (12 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 376 byte(s)
Tue Apr 17 12:07:30 2012 UTC (12 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 376 byte(s)
tagged 'alxconf-0_6_4_3'
1 | # $Id$ |
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 | sed 's:.*\[\ \(.*\)\ \].*:\1:')" |
10 | alx_utils="${alx_utils/alxconfig-ng-}" |
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 | } |