Commit 80f83ae2 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Fixup f8d1e3eb: do not use "cut".

parent 3de3e8f4
......@@ -4,7 +4,7 @@
source $NEWROOT/etc/rapid.space/get-network.sh
SLAPOS_CFG_FILE="$NEWROOT"/etc/opt/slapos/slapos.cfg
WENDELIN_REFERENCE=$(sed -n '/computer_id = /p' "$SLAPOS_CFG_FILE" | cut -d' ' -f3)
WENDELIN_REFERENCE=$(sed -n '/computer_id = /p' /etc/opt/slapos/slapos.cfg | sed 's/computer_id = \(.*\)/\1/g')
SCAN_FILE=/var/log/metadata_collect.log
sed -i "s|%SCAN_FILE%|$SCAN_FILE|g;s/%WENDELIN_REFERENCE%/$WENDELIN_REFERENCE/g;s/%NEWROOT%/$NEWROOT/g" /etc/flb.conf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment