Merge branch 'master' of git.darkou.fr:dbroqua/home
This commit is contained in:
commit
a6a0d18eec
2 changed files with 19 additions and 3 deletions
16
bin/createLP.sh
Executable file
16
bin/createLP.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#! /bin/bash
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo Usage: createLp.sh \"artist/album\" https://cover
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ~/Music/Vinyles
|
||||
|
||||
mkdir -p "Raw/${1}"
|
||||
mkdir -p "Flac/${1}"
|
||||
|
||||
wget ${2} -O /tmp/cover.jpg
|
||||
|
||||
cp /tmp/cover.jpg "Raw/${1}"
|
||||
cp /tmp/cover.jpg "Flac/${1}"
|
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo "# Correction des permissions"
|
||||
find ~/Music -type f \( -iname \*.flac -o -iname \*.mp3 \) -perm 600 -print -exec chmod go+r {} \;
|
||||
|
||||
rsync -avz --delete ~/Music dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/
|
||||
|
||||
rsync -avz --delete ~/Vinyles dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/
|
||||
echo "# Copie des CDs, LPs et EPs"
|
||||
rsync -avz --delete ~/Music/ dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/Musiques
|
||||
|
|
Loading…
Reference in a new issue