follow symlinks

for people that have a symlink, such as /opt/influxdb/shared/data as a link to a datadir on a different volume, this makes sure the ownership is reset there too.
otherwise you can get influxdb to panic due to incorrect permissions (happened to me)
pull/651/head
Dieter Plaetinck 2014-06-16 14:41:27 -04:00
parent 216a3eb21d
commit fda4194ac0
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if ! id influxdb; then
useradd --system -U -M influxdb
fi
chown -R influxdb:influxdb $influx_dir
chown -R -L influxdb:influxdb $influx_dir
chmod -R a+rX $influx_dir
# only restart if the service was already running