Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Change permissions of .policeconf
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Nov 30, 2011
1 parent 06c315d commit c8ac3ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ police auth
```

**Note:** We will not save your [github](http://github.com) password anywhere. A token which we acquire during
the authentication will be used thereafter.
the authentication will be used thereafter. And it will be saved in a file with permissions `0600`

```sh
# To police your module dependencies
Expand All @@ -40,6 +40,9 @@ police flatiron/plates
# To police a local module or package.json file
police -l ~/octonode
police -l ~/octonode/package.json

# To continue checking even though errors are encountered
police -u flatiron -f
```

The token which we acquied during auth will be stored in `$HOME/.policeconf`. If you want to use another config file
Expand Down
1 change: 1 addition & 0 deletions lib/police/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ config.load = function () {
winston.silly('Initalizing configuration file'.cyan);
try {
fs.writeFileSync(conf, '{}');
fs.chmodSync(conf, 0600);
} catch (err) {
winston.warn('Cannot intialize configuration file.'.red.bold);
throw err;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "police",
"description": "policing tool for dependency package versions",
"version": "0.1.1",
"version": "0.1.2",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pkumar.github.com)",
"contributors": [
{ "name": "Pavan Kumar Sunkara", "email": "pavan.sss1991@gmail.com" }
Expand Down

0 comments on commit c8ac3ea

Please sign in to comment.