ansible-infra/roles/transmission/files/update-transmission-settings
Stefan Bethke 81b16a04cb
Some checks failed
/ build (push) Successful in 48s
/ Ansible Lint (push) Failing after 2m42s
Explain why this is necessary
2026-07-05 10:40:29 +02:00

14 lines
459 B
Bash

#!/bin/sh
#
# Update the transmission settings.json. For the update, stop transmission,
# put the new file in place, and restart it. This is necessary because
# transmission is constantly rewriting the settings file while it is running.
#
set -e
systemctl stop transmission-daemon
cp /etc/transmission-daemon/settings-ansible.json /etc/transmission-daemon/settings.json
chmod 0660 /etc/transmission-daemon/settings.json
systemctl start transmission-daemon