From: Alan J. Pippin Date: Tue, 30 Oct 2012 22:38:37 +0000 (-0600) Subject: Added some code to correctly chown/chmod the playlists when they are created X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/%7Bediturl%7D?a=commitdiff_plain;h=edc693952db5a6ff437046e6ee03be89c64ac62e;p=videoscripts%2F.git Added some code to correctly chown/chmod the playlists when they are created --- 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