Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Removed check for already running script
Browse files Browse the repository at this point in the history
Caused issue with not being able to run the script at all
  • Loading branch information
masonr authored May 4, 2017
1 parent 0225f1d commit 5e8c6a3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plexidrive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
## server. ##
######################################################

# Before starting, check if script is already running
precheck=`ps aux | grep plexidrive.sh | wc -l`
if [ "$precheck" -gt 1 ] ; then
echo "This script is already running, exiting to avoid duplicate uploads."
exit 1
fi

# Directory where this file exists
plexidrive_dir=`dirname $(realpath -s $0)`
cd "$plexidrive_dir"
Expand Down Expand Up @@ -94,4 +87,4 @@ fi
# # Run the Plex scan script
# # If scanning enabled, must be ran as root user to execute the plex scanning script as the plex user
# sudo su -c './plex-scan.sh' plex
# fi
# fi

0 comments on commit 5e8c6a3

Please sign in to comment.