Added some code to correctly chown/chmod the playlists when they are created
authorAlan J. Pippin <alan@pippins.net>
Tue, 30 Oct 2012 22:38:37 +0000 (16:38 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Tue, 30 Oct 2012 22:38:37 +0000 (16:38 -0600)
organize_videos

index 5625f8bcd927a0ca19830dadabf4155cafd255bd..782ee17e61fb5f910137746ac17a52f5198680b9 100755 (executable)
@@ -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