Create music directory is it doesn't exist

This commit is contained in:
Bob Mottram 2014-09-14 20:47:51 +01:00
parent 0c9bb21c94
commit ff4a8f2823
1 changed files with 4 additions and 1 deletions

View File

@ -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