X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=organize_videos;h=782ee17e61fb5f910137746ac17a52f5198680b9;hb=edc693952db5a6ff437046e6ee03be89c64ac62e;hp=5625f8bcd927a0ca19830dadabf4155cafd255bd;hpb=70d3ba3c710f3fe234188d492b42338aa2069513;p=videoscripts%2F.git diff --git a/organize_videos b/organize_videos index 5625f8b..782ee17 100755 --- a/organize_videos +++ b/organize_videos @@ -101,7 +101,12 @@ sub create_playlists { print " Skipping $file since we can't extract the year and month from it\n"; } } - } + + # Fix the permissions + system("chown $owner \"$dstdir/\"*.$playlist_extension"); + system("chgrp $group \"$dstdir/\"*.$playlist_extension"); + system("chmod $mode \"$dstdir/\"*.$playlist_extension"); + } } # Sanity checks / Option processing