Permalink
Browse files

replaced some quotes with backticks

  • Loading branch information...
1 parent b74b726 commit c9b41e6d2d5807edfa5ce0633b7d95978632b792 @git4mystuff committed Jul 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 unraid/plex_package/etc/rc.d/rc.plexmediaserver
@@ -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
@@ -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(){
@@ -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
@@ -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

0 comments on commit c9b41e6

Please sign in to comment.