From 519db946405f2bfc0d205967e621ac03c420cd81 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 17 Jun 2014 14:27:48 +0200 Subject: put state file on /data and run as non-root again, as discussed with joern --- package/mpd/files/mpd.init | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/mpd/files/mpd.init') diff --git a/package/mpd/files/mpd.init b/package/mpd/files/mpd.init index 1e8fe21df..abadb3ec2 100644 --- a/package/mpd/files/mpd.init +++ b/package/mpd/files/mpd.init @@ -12,6 +12,10 @@ autostart) exec sh $0 start ;; start) + if [ ! -d /data/mpd ];then + mkdir -p /data/mpd + chown mpd:mpd /data/mpd + fi mpd ;; stop) -- cgit v1.2.3