From 15d8a191bcb1e9dcf961d9073e7c8153653e6b6e Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Thu, 5 Nov 2020 13:21:52 +0100 Subject: #997: Fix oglivecli. The script was not detecting the Initrd compression program, could not get the samba password and needed to ask for it. --- server/bin/oglivecli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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') -- cgit v1.2.3-18-g5258