January 21Jan 21 How to run sh code?Hi!I need to repair my Plex database and I found a tool to do so, here's the tool:GitHubGitHub - ChuckPa/DBRepair: Database repair utility for Pl...Database repair utility for Plex Media Server databases - ChuckPa/DBRepairThis said, I'm new to unraid and I'm unsure how to execute the script in unraid?Any help would be great!! Thanks
January 21Jan 21 Author Ok thanks for the reply, will try there too but if anyone got any basic tricks for me Imma take them here too please!
January 21Jan 21 Community Expert You have to make sure that the 'execute' flag is set in permissions for the tool. Permissions are -rw-rw-rw- for non executable files. They are -rwxrwxrwx for files that can be executed. (This requirement is for all files— shell scripts, binary, etc.)
January 22Jan 22 Community Expert What I found easier is to copy the DB repair script into the library folder, the app data folder of the template. Any Docker a console into the Plex system and cd /config example. Then if you use ./[scriptmame].sh it should run...I found that I've also had to add a Docker mod to the dockers to install sqlite binary to make the script run sometimes. This is why I created the DB repair Docker which runs that script
January 24Jan 24 to run a shell script in terminal is ./yourfile.sh . the file must be set as executable first though to make it so chmod +x yourfile.sh . Before running any script you should understand what the script is going to do or you might have bigger problems.On 1/22/2026 at 9:42 AM, ManixQC said:How to run sh code?Hi!I need to repair my Plex database and I found a tool to do so, here's the tool:GitHubGitHub - ChuckPa/DBRepair: Database repair utility for Pl...Database repair utility for Plex Media Server databases - ChuckPa/DBRepairThis said, I'm new to unraid and I'm unsure how to execute the script in unraid?Any help would be great!! Thanks
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.