Compare commits
2 commits
9ef26d9eab
...
6122d8d576
Author | SHA1 | Date | |
---|---|---|---|
6122d8d576 | |||
4304f30d2a |
2 changed files with 19 additions and 0 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 ~/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,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo "# Correction des permissions"
|
||||
find ~/Music -type f \( -iname \*.flac -o -iname \*.mp3 \) -perm 600 -print -exec chmod go+r {} \;
|
||||
|
||||
echo "# Copie des CDs"
|
||||
rsync -avz --delete ~/Music dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/
|
||||
|
||||
echo "# Copie des vinyles"
|
||||
rsync -avz --delete ~/Vinyles dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/
|
||||
|
|
Loading…
Reference in a new issue