Skip to content

Commit

Permalink
fix docker v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arial-Z committed Jan 20, 2023
1 parent 6634b0a commit 50329e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions movies-renamer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@ curl "https://raw.githubusercontent.com/Arial-Z/Animes-ID/main/list-animes-id.js
if [ "$PMM_INSTALL_TYPE" == "python_venv" ]
then
rm $PMM_FOLDER_CONFIG/temp-movies.cache
$PMM_FOLDER/pmm-venv/bin/python $PMM_FOLDER/plex_meta_manager.py -r --config $PMM_FOLDER_CONFIG/temp-movies.cache
$PMM_FOLDER/pmm-venv/bin/python $PMM_FOLDER/plex_meta_manager.py -r --config $PMM_FOLDER_CONFIG/temp-movies.yml
mv $PMM_FOLDER_CONFIG/logs/meta.log $SCRIPT_FOLDER/tmp
elif [ "$PMM_INSTALL_TYPE" == "docker" ]
then
rm $PMM_FOLDER_CONFIG/temp-movies.cache
docker exec -it $DOCKER_CONTAINER_NAME python plex_meta_manager.py -r --config config/temp-movies.cache
docker exec -it $DOCKER_CONTAINER_NAME python plex_meta_manager.py -r --config config/temp-movies.yml
mv $PMM_FOLDER_CONFIG/logs/meta.log $SCRIPT_FOLDER/tmp
elif [ "$PMM_INSTALL_TYPE" == "python" ]
then
rm $PMM_FOLDER_CONFIG/temp-movies.cache
python $PMM_FOLDER/plex_meta_manager.py -r --config $PMM_FOLDER_CONFIG/temp-movies.cache
python $PMM_FOLDER/plex_meta_manager.py -r --config $PMM_FOLDER_CONFIG/temp-movies.yml
mv $PMM_FOLDER_CONFIG/logs/meta.log $SCRIPT_FOLDER/tmp
else
echo "Set Plex Meta Manager install type in conf"
Expand Down

0 comments on commit 50329e0

Please sign in to comment.