summaryrefslogtreecommitdiff
path: root/bin/populate-avatars.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/populate-avatars.pl')
-rwxr-xr-xbin/populate-avatars.pl26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/populate-avatars.pl b/bin/populate-avatars.pl
new file mode 100755
index 0000000..ee9f4fd
--- /dev/null
+++ b/bin/populate-avatars.pl
@@ -0,0 +1,26 @@
+#!/usr/bin/perl
+
+$ENV{HTTPS} = "on";
+
+use localbucky;
+
+$DEBUG = 1;
+
+$dbh = DBI->connect ($dsn);
+
+my $users = get_all_users();
+
+system("chmod", "-R", "777", "$data_path/profile");
+
+foreach my $u (@$users)
+ {
+ update_profile_thumb($u->{username});
+ print "\n";
+ }
+
+system("chmod", "-R", "777", "$data_path/profile");
+
+# system("chown", "-R", "nobody:nobody", "$data_path/profile");
+
+$dbh->disconnect();
+