This is a bash script meant to run alongside the docker version of `slskd`, a modern Web-based SoulSeek client. It looks at a certain directory and then scans its contents according to a set interval. Then, when it detects new files, it changes their permissions and ownership automatically, leaving a log entry in the journal.
|
1 maand geleden | |
---|---|---|
LICENSE | 1 maand geleden | |
README.md | 1 maand geleden | |
install-as-systemd.sh | 1 maand geleden | |
slskd-permission-monitor.sh | 1 maand geleden | |
slskd-permissions-fixer.service | 1 maand geleden |
This is a bash script meant to look at a certain directory and scan its contents according to a set interval. Then, when it detects new files, it changes their permissions and ownership automatically, leaving a log entry in the journal.
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.
If you wish to use systemd, just run /bin/bash install-as-systemd.sh
. The script will walk you through what to do.
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.