diff options
| author | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
|---|---|---|
| committer | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
| commit | 79670053c7247d3a49b607960efd284e93f057e5 (patch) | |
| tree | 9617f6eefa38b2686ae409bf75cc27a340444eda /bin/populate-avatars.pl | |
| parent | c53827d5d044ae5ca7ebb27acb404b7a8988918e (diff) | |
install.pl
Diffstat (limited to 'bin/populate-avatars.pl')
| -rwxr-xr-x | bin/populate-avatars.pl | 26 |
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(); + |
