feat: change config dir path to /etc/libretime

BREAKING: The configuration directory changed from `/etc/airtime` to
`/etc/libretime`. Please rename your configuration directory accordingly.
This commit is contained in:
jo 2022-06-06 17:10:44 +02:00 committed by Kyle Robbertze
parent 604ff20239
commit aed6d2f294
29 changed files with 51 additions and 45 deletions

View file

@ -3,7 +3,7 @@ Description=LibreTime Media Analyzer Service
[Service]
Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/analyzer.log
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/config.yml
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/libretime/config.yml
WorkingDirectory=/var/lib/libretime/analyzer
ExecStart=/usr/local/bin/libretime-analyzer

View file

@ -19,7 +19,7 @@ post_file() {
file_path="${stripped_file_path}"
# filename="${file_path##*/}"
airtime_conf_path=/etc/airtime/config.yml
airtime_conf_path=/etc/libretime/config.yml
#instance_path will look like 1/1384, for example
http_path=$(grep base_url ${airtime_conf_path} | awk '{print $3;}')