summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2020-11-05 13:21:52 +0100
committerIrina Gómez <irinagomez@us.es>2020-11-05 13:21:52 +0100
commit15d8a191bcb1e9dcf961d9073e7c8153653e6b6e (patch)
treec1c8f02eaefc4cfdc8d5ab18d4b74856e3cbf1f6
parent87f4bc9730716a1967832ff7c99a205c949702a0 (diff)
#997: Fix oglivecli.
The script was not detecting the Initrd compression program, could not get the samba password and needed to ask for it.
-rwxr-xr-xserver/bin/oglivecli2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli
index 65dd2e0f..056d2710 100755
--- a/server/bin/oglivecli
+++ b/server/bin/oglivecli
@@ -289,7 +289,7 @@ function install() {
OGINITRD=$OGLIVEDIR/oginitrd.img
[ ! -r $OGINITRD ] && OGINITRD=$TFTPDIR/$DEFOGLIVE/oginitrd.img
if [ -r $OGINITRD ]; then
- COMPRESS=$(file -b "$OGINITRD " | awk '{print tolower($1);}')
+ COMPRESS=$(file -b "$OGINITRD" | awk '{print tolower($1);}')
SAMBAPASS=$($COMPRESS -dc $OGINITRD | \
cpio -i --to-stdout scripts/ogfunctions 2>&1 | \
sed -n '/^[ ].*OPTIONS=/s/.*pass=\(\w*\).*/\1/p')