projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd428a6
)
make .meta path for rsync secrets file
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 12 Dec 2011 19:50:57 +0000
(20:50 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 12 Dec 2011 19:51:00 +0000
(20:51 +0100)
This way it ends up owned by root which is a good thing.
lib/CloudStore/API.pm
patch
|
blob
|
history
diff --git
a/lib/CloudStore/API.pm
b/lib/CloudStore/API.pm
index
93d3c76
..
689c8ba
100644
(file)
--- a/
lib/CloudStore/API.pm
+++ b/
lib/CloudStore/API.pm
@@
-68,7
+68,9
@@
sub create_user {
mkdir $dir;
chown $max_uid, $self->{PORT}, $dir;
- open($fh, '>', "$dir/.meta/secrets");
+ my $path = "$dir/.meta/secrets";
+ $self->mkbasepath($path);
+ open($fh, '>', $path);
print $fh "u$max_uid:$new_passwd\n";
close $fh;
}