#768: Enlazar correctamente a directorio de antiguo cliente ogclient al instalar un nuevo cliente ogLive.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5234 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
47074815ac
commit
715ff08881
|
@ -266,7 +266,7 @@ function download() {
|
|||
|
||||
# Install an ogLive client from a previously downloaded ISO image.
|
||||
function install() {
|
||||
local OGLIVEFILE OGLIVEDIST OGLIVEREV OGLIVEKRNL OGLIVEDIR OGINITRD OGSQFS
|
||||
local OGLIVEFILE OGLIVEDIST OGLIVEREV OGLIVEKRNL OGLIVEDIR OGINITRD OGSQFS OGCLIENT=ogclient
|
||||
local SAMBAPASS TMPDIR RSYNCSERV RSYNCCLNT
|
||||
[ $# -ne 1 ] && raiseError usage
|
||||
OGLIVEFILE=$DOWNLOADDIR/"$1"
|
||||
|
@ -308,6 +308,7 @@ function install() {
|
|||
umount $TMPDIR
|
||||
rm -f $TFTPDIR/$DEFOGLIVE
|
||||
ln -vfs $(basename $OGLIVEDIR) $TFTPDIR/$DEFOGLIVE
|
||||
ln -vfs $DEFOGLIVE $TFTPDIR/$OGCLIENT
|
||||
# Recover or ask for a new Samba access key.
|
||||
if [ -n "$SAMBAPASS" ]; then
|
||||
echo -ne "$SAMBAPASS\n$SAMBAPASS\n" | $OPENGNSYS/bin/setsmbpass
|
||||
|
|
Loading…
Reference in New Issue