blitz.conf: add sudo for new entries

This commit is contained in:
openoms 2022-01-04 18:14:22 +00:00
parent e5f7f447d9
commit dd10808f9f
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -47,7 +47,7 @@ if [ "$1" = "set" ]; then
# check if key needs to be added (prepare new entry)
entryExists=$(grep -c "^${keystr}=" ${configFile})
if [ ${entryExists} -eq 0 ]; then
echo "${keystr}=" | tee -a ${configFile}
echo "${keystr}=" | sudo tee -a ${configFile}
fi
# add valuestr quotes if not standard values