From a433a3a79ed48a2a4e0037ffc9b451619124ab7b Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 28 Mar 2017 15:05:23 -0500 Subject: Fix syntax error deleting possible pre-existing password --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 9e6efb3..71dab11 100755 --- a/setup.sh +++ b/setup.sh @@ -58,7 +58,7 @@ if [ "$1" != "--update" ]; then echo "ROOT_PASSWORD = \"$pass\"" >password.txt echo "HASH = \"$hash\"" >>password.txt echo "ROOT_PASSWORD_HASH = \"$hash\"" >>conf/local.conf - sed -ri "d/ROOT_PASSWORD[[:space:]]=/" conf/local.conf || true + sed -ri "/ROOT_PASSWORD[[:space:]]=/d" conf/local.conf || true echo "ROOT_PASSWORD = \"$pass\"" >>conf/local.conf fi -- cgit v1.2.3