20 lines
461 B
Plaintext
20 lines
461 B
Plaintext
|
#!/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)"
|
||
|
|