Skip to content
Browse files

added some missing quotes

  • Loading branch information...
1 parent bef8a1a commit 805dbfabba62f62d384922954c49503728d5dcc9 @git4mystuff committed Jul 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 unraid/plex_package/etc/rc.d/rc.plexmediaserver
View
6 unraid/plex_package/etc/rc.d/rc.plexmediaserver
@@ -55,15 +55,15 @@ plex_version(){
}
plex_check_dirs(){
- if [ ! -d $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR ]; then
+ if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ]; then
logger -t pms "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR doesn't exist creating it"
mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"
fi
#Check if current runas user is owner of $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
- if [ "$(stat -c %U $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR)" != "$RUNAS" ]; then
+ if [ "$(stat -c %U '$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR')" != "$RUNAS" ]; then
logger -t pms "Plex Media Server: changing owner of $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR to $RUNAS"
- chown -R $RUNAS:users $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR
+ chown -R $RUNAS:users "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR"
fi
if [ ! -d $PLEX_MEDIA_SERVER_TMPDIR ]; then

0 comments on commit 805dbfa

Please sign in to comment.
Something went wrong with that request. Please try again.