Tester c'est douter

This commit is contained in:
Aethor 2021-06-12 13:08:23 +02:00
parent 8153232f66
commit 5ccfe26ea0
3 changed files with 11 additions and 4 deletions

View File

@ -15,8 +15,9 @@ COPY ices.xml.jinja .
COPY next_song.py /opt
COPY yt_sync.py /opt
COPY ultrasync.sh /opt
RUN chmod +x /opt/yt_sync.py /opt/next_song.py
RUN chmod +x /opt/yt_sync.py /opt/next_song.py /opt/ultrasync.sh
RUN mkdir -p /songs /jingles /var/log/icecast

View File

@ -11,10 +11,9 @@ pass_gen="python3 -c 'import secrets, string; print(\"\".join((secrets.choice(st
export source_username=$(eval $pass_gen)
export source_password=$(eval $pass_gen)
pip install youtube-dl
j2 ices.xml.jinja > ices.xml
j2 icecast.xml.jinja > icecast.xml
runuser -l zambla -c 'icecast2 -c /config/icecast.xml &'
runuser -l zambla -c '/opt/ultrasync.sh &'
runuser -l zambla -c 'ices2 /config/ices.xml'

7
ultrasync.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
while true; do
pip3 install -U youtube_dl --user
/opt/yt_sync.py
sleep 10m
done