X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=ftp%2Frecreate_links.sh;h=55ec706b0a77cd51166916b6f9157c13fd853333;hb=1d5629a85dda994499e6d053f024c16a9026cbbd;hp=c2d94b9cab472824e6061c2d2a8994289c948ff9;hpb=166a8a272ff945c0882c864ecbbc358db67af6f2;p=scripts-20-100.git diff --git a/ftp/recreate_links.sh b/ftp/recreate_links.sh index c2d94b9..55ec706 100755 --- a/ftp/recreate_links.sh +++ b/ftp/recreate_links.sh @@ -4,7 +4,7 @@ cd /home/ftp ## On commence par nettoyer -find . -type l \! -name '\.*' -exec rm {} \; +find . -type l \! -name '\.*' \! -name "motd" \! -name "welcome\.msg" -exec rm {} \; ## Puis on recrée les liens ### Penser : sous jessie, l'option -r existe et c'est cool pour sshfs & co @@ -19,4 +19,4 @@ ln -s /media/Delta/Upload/ # Les séries cd Séries -find /media/{Zêta,Epsilon,Delta}/Séries -mindepth 1 -maxdepth 1 -type d -exec ln -s {} \; +find /media/{Zêta,Epsilon,Delta}/Séries -mindepth 1 -maxdepth 1 \( -type d -or -type l \) -exec ln -s {} \;