From 68db638421c3408a1f69119a465423cc43299d0b Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Tue, 30 Jan 2024 17:21:21 +0100 Subject: [PATCH] Do not do substitution when installing upgrade script (#1786) --- scripts/install-vm.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/install-vm.sh b/scripts/install-vm.sh index b9bd6e369d..2064393f43 100755 --- a/scripts/install-vm.sh +++ b/scripts/install-vm.sh @@ -91,7 +91,7 @@ $SUDO mkdir /var/lib/nucliadb $SUDO chown nucliadb:nucliadb /var/lib/nucliadb # Install upgrade script -cat << EOF | $SUDO tee /usr/bin/upgrade-nucliadb > /dev/null +cat << 'EOF' | $SUDO tee /usr/bin/upgrade-nucliadb > /dev/null #!/bin/bash # # The purpose of this script is to be used to upgrade NucliaDB to the latest @@ -121,13 +121,3 @@ $SUDO systemctl start nucliadb EOF $SUDO chmod +x /usr/bin/upgrade-nucliadb - -# Install config -cat << EOF | $SUDO tee /etc/default/nucliadb > /dev/null -LOG_OUTPUT_TYPE=STDOUT - -DRIVER=pg -DRIVER_PG_URL= - -NUA_API_KEY= -EOF \ No newline at end of file