From ff4a8f2823151163e23461eb9bceb32d68f9ee4b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Sep 2014 20:47:51 +0100 Subject: [PATCH] Create music directory is it doesn't exist --- beaglebone.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beaglebone.txt b/beaglebone.txt index bc87b88c..119376ae 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -7189,8 +7189,11 @@ Add the following: #+BEGIN_SRC: bash #!/bin/bash +if [ ! -d /var/music ]; then + mkdir /var/music +fi mount /dev/sda1 /var/music -chown -R root:root /var/music +chown root:root /var/music chown -R subsonic:subsonic /var/music/* #+END_SRC