Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to run sh code?

Featured Replies

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:

GitHub
No image preview

GitHub - ChuckPa/DBRepair: Database repair utility for Pl...

Database repair utility for Plex Media Server databases - ChuckPa/DBRepair

This said, I'm new to unraid and I'm unsure how to execute the script in unraid?

Any help would be great!! Thanks

  • Community Expert

Maybe try this instead

  • 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!

  • 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.)

  • 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

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:

GitHub
No image preview

GitHub - ChuckPa/DBRepair: Database repair utility for Pl...

Database repair utility for Plex Media Server databases - ChuckPa/DBRepair

This 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.