|
@@ -4,10 +4,17 @@ This is a bash script meant to look at a certain directory and scan its contents
|
|
|
|
|
|
## Install
|
|
|
|
|
|
-Run `sudo chmod +x *.sh`. You can inspect the code if you wish before running. The `slskd-permissions-fixer.sh` script runs fine on its own, and can be daemonized by hand using tools like `screen` or similar.
|
|
|
+To quickstart:
|
|
|
+1. `git clone https://git.donaberger.xyz/mitch/slskd-permissions-fixer`
|
|
|
+2. `cd slskd-permissions-fixer/`
|
|
|
+3. `sudo chmod +x slskd-permissions-fixer.sh && sudo chmod +x install-as-systemd.sh`
|
|
|
|
|
|
-If you wish to use systemd, just run `/bin/bash install-as-systemd.sh`. The script will walk you through what to do.
|
|
|
+Then, either...
|
|
|
+
|
|
|
+4a. Run the script alone (does not run in background): `/bin/bash slskd-permissions-fixer.sh`
|
|
|
+4b. Install it as a `systemd` module: `/bin/bash install-as-systemd.sh`
|
|
|
+4c. Copy `slskd-permissions-fixer.system` to `/etc/systemd/users/slskd-permissions-fixer.system` and then run `sudo systemctl daemon-reload && sudo systemctl status slskd-permissions-fixer`
|
|
|
|
|
|
## Okay, but, why write a script for this?
|
|
|
|
|
|
-Because the Docker container for `slskd` does not seem to respect the global Docker flags for active user/guid. So, I did the next best thing, and just had a script run as root and wait for newly downloaded files. Then it updates them according to the parameters set. Also I am lazy.
|
|
|
+Because the Docker container for `slskd` does not seem to respect the global Docker flags for active user/guid. So, I did the next best thing, and just had a script run as root and wait for newly downloaded files. Then it updates them according to the parameters set. Also, I am lazy. 🤷
|