Skip to content

Commit

Permalink
replaced some quotes with backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
git4mystuff committed Jul 3, 2012
1 parent b74b726 commit c9b41e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unraid/plex_package/etc/rc.d/rc.plexmediaserver
Expand Up @@ -10,7 +10,7 @@ plex_start() {
exit 1
fi

su $RUNAS -s /bin/bash -c ". $CONFIG_FILE; cd '$PLEX_MEDIA_SERVER_HOME'; ./Plex\ Media\ Server > /dev/null 2>&1 &"
su $RUNAS -s /bin/bash -c ". $CONFIG_FILE; cd `$PLEX_MEDIA_SERVER_HOME`; ./Plex\ Media\ Server > /dev/null 2>&1 &"

sleep 2
for i in {1..5}; do
Expand Down Expand Up @@ -51,7 +51,7 @@ plex_forcestop(){
}

plex_version(){
su $RUNAS -s /bin/bash -c ". $CONFIG_FILE; cd '$PLEX_MEDIA_SERVER_HOME'; ./Plex\ Media\ Server --version"
su $RUNAS -s /bin/bash -c ". $CONFIG_FILE; cd `$PLEX_MEDIA_SERVER_HOME`; ./Plex\ Media\ Server --version"
}

plex_check_dirs(){
Expand All @@ -61,7 +61,7 @@ plex_check_dirs(){
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"
fi
Expand All @@ -72,7 +72,7 @@ plex_check_dirs(){
fi

#Check if current runas user is owner of $PLEX_MEDIA_SERVER_TMPDIR
if [ $(readlink -f '$PLEX_MEDIA_SERVER_TMPDIR') != "/tmp" ] && [ "$(stat -c %U '$PLEX_MEDIA_SERVER_TMPDIR')" != "$RUNAS" ]; then
if [ $(readlink -f `$PLEX_MEDIA_SERVER_TMPDIR`) != "/tmp" ] && [ "$(stat -c %U `$PLEX_MEDIA_SERVER_TMPDIR`)" != "$RUNAS" ]; then
logger -t pms "Plex Media Server: changing owner of $PLEX_MEDIA_SERVER_TMPDIR to $RUNAS"
chown -R $RUNAS:users "$PLEX_MEDIA_SERVER_TMPDIR"
fi
Expand Down

0 comments on commit c9b41e6

Please sign in to comment.