yandex_music : migrate to docker image.

This commit is contained in:
Dmitry Voronin 2023-11-05 01:02:39 +03:00
parent e4436a804f
commit da2681861e

View file

@ -1,19 +1,5 @@
#!/bin/bash
source /var/roothome/app/bin/home/shared.sh
if [ ! -f /var/mnt/storage/hot/.mount ]; then
echo mount hot storage
notify 'backup: hot storage not mounted'
exit 1
fi
cd /var/roothome/app/ru.cakee.music_transfer
#/usr/bin/python3 -m venv venv
. venv/bin/activate
python dl_yandex.py > /tmp/yandex_music.log || notify "music download failed"
/usr/bin/sed -i '1,2d' /tmp/yandex_music.log
notify_silent "$(/usr/bin/cat /tmp/yandex_music.log)"
music="/var/mnt/storage/hot/media/music/"
/usr/bin/docker run --rm -v "${music}":/music voronind.com/yamusic:latest