CERN Accelerating science

A `sed` command in the QDB namespace manual breaks configuration

Hello all,
During I had been migrating to the QuarkDB namespace, I found a troublesome command in the manual page:

 sed -i 's/fi/  redis.myself localhost:700'"${i}"'\n&/' /etc/xrootd/xrootd-quarkdb${i}.cfg

It does not work because in the configuration file:

if exec xrootd
   xrd.port 7777
   xrd.protocol redis:7777 /usr/lib64/libXrdQuarkDB.so
   redis.mode raft
   redis.database /var/quarkdb
   redis.password_file /etc/eos.keytab
fi

password_file contains fi, so the regex matches there instead of the one in the last line. Thus, the command screws it up.

Best,
Masanori

Hi Masanori,

The documentation has been updated to fix this issue. I will be updated with the next release.

Thanks,
Elvin

1 Like

Hello Elvin,

Thank you for sharing the up-to-date information!

Best,
Masanori