From: Alan J. Pippin <alan@pippins.net>
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/%27%20.%20%24this-%3Ephpgw_js_url%20.%20%27/jscalendar/static/gitweb.css?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