From d4b9cf0409404946c66dae1b18704869b190ffa7 Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Wed, 8 Jul 2015 22:36:05 +0200 Subject: [PATCH] Fix for first time startup that App Support would not exsist --- init/99_chown_plex_owned_files.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init/99_chown_plex_owned_files.sh b/init/99_chown_plex_owned_files.sh index ecf1d7f..73f8dae 100644 --- a/init/99_chown_plex_owned_files.sh +++ b/init/99_chown_plex_owned_files.sh @@ -1,3 +1,6 @@ #!/bin/bash -find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; \ No newline at end of file + +if [ -f /config/Library/Application Support]; then +find "/config/Library/Application Support" -user plex -exec chown abc:abc {} \; +fi \ No newline at end of file