From 7df09f8b146ae7fb091787770fe5681381164f0e Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Wed, 2 Oct 2024 23:21:43 +0200 Subject: fix database setup --- scripts/populate.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'scripts/populate.sh') diff --git a/scripts/populate.sh b/scripts/populate.sh index d8ccf8d..0f1ac0c 100644 --- a/scripts/populate.sh +++ b/scripts/populate.sh @@ -3,11 +3,19 @@ echo activate virtual environment? \(source ~/.venv/bin/activate\) [y/n] read answer if [[ $answer == 'y' ]] then - source ~/.venv/bin/activate + source ~/.config/venv/bin/activate fi -python3 scripts/populate/main.py +mkdir -p lyrics_cache +cd lyrics_cache + +python3 ../scripts/populate/main.py + +cd .. +mv lyrics_cache/covers ./ +rm -rf lyrics_cache if [[ $answer == 'y' ]] then deactivate fi + -- cgit v1.2.3