3e89f987c0
TrivialFix Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
7 lines
192 B
Bash
7 lines
192 B
Bash
#!/bin/bash
|
|
|
|
# Only update permissions if permissions need to be updated
|
|
if [[ $(stat -c %U:%G /var/lib/collectd) != "collectd:collectd" ]]; then
|
|
sudo chown collectd: /var/lib/collectd
|
|
fi
|