Skip to content

Commit

Permalink
Replaces sudo with su in init script
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Oct 10, 2014
1 parent b2b612b commit 9dfbf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ case $1 in
elif set | egrep '^start_daemon' > /dev/null 2>&1; then
start_daemon -u influxdb ${daemon}-daemon -pidfile $pidfile -config $config
else
sudo -u influxdb -g influxdb ${daemon}-daemon -pidfile $pidfile -config $config
su -s /bin/sh -c "${daemon}-daemon -pidfile $pidfile -config $config" influxdb
fi
log_success_msg "$name process was started"
;;
Expand Down

0 comments on commit 9dfbf8d

Please sign in to comment.