918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change
on this file since b6c0607 was
2338c95f,
checked in by ramon <ramongomez@…>, 14 years ago
|
Rama version1.0:
- Redistribución de directorios para el cliente.
- Modificación del instalador para adaptarse a la nueva estructura de directorios.
- Desinstalador quita los recursos de OpenGnSys en Samba.
- Documentación actualizada para la nueva versión.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1526 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100755
|
File size:
1016 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Scirpt de ejemplo para almacenear en fichero temporal el listado de software. |
---|
3 | # (puede usarse como base para el programa de arranque usado por OpenGNSys Admin). |
---|
4 | # Formato: listSoftwareInfo [-r] ndisk npart |
---|
5 | # -r listado reducido (sin parches) |
---|
6 | |
---|
7 | PROG="$(basename $0)" |
---|
8 | REDUCED="no" |
---|
9 | if [ $# -ne 2 ]; then |
---|
10 | ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG ndisco nparticion" |
---|
11 | exit $? |
---|
12 | fi |
---|
13 | |
---|
14 | # Directorio del servidor donde se exportan los ficheros de registro. |
---|
15 | SERVERLOGDIR=$(mount | awk -v d=$OGLOG ' |
---|
16 | BEGIN {FS="[: ]"} |
---|
17 | {if ($4==d) dir=$2} |
---|
18 | END {print dir}') |
---|
19 | # Fichero de listado: soft-IP-ndisco-npart |
---|
20 | SOFTFILE="soft-$(ogGetIpAddress)-$1-$2" |
---|
21 | # Redirigir salida al fichero de listado. |
---|
22 | if [ "$REDUCED" = "no" ]; then |
---|
23 | ogListSoftware "$1" "$2" >$OGLOG/$SOFTFILE || exit $? |
---|
24 | else |
---|
25 | ogListSoftware "$1" "$2" | egrep -v "\(KB[0-9]{6}\)" >$OGLOG/$SOFTFILE || exit $? |
---|
26 | fi |
---|
27 | # Salid: camino del fichero de listado en el servidor de repositorio. |
---|
28 | #echo $SERVERLOGDIR/$SOFTFILE |
---|
29 | echo $OGLOG/$SOFTFILE |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.