Skip to content

Commit

Permalink
Merge pull request ether#2 from ariddell/feature/allow-root
Browse files Browse the repository at this point in the history
Allow running etherpad as root with env var (thanks ariddell)
  • Loading branch information
talexand committed Oct 28, 2014
2 parents f983b25 + b7c4648 commit 4f9ffd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ heroku config:add ETHERPAD_SETTINGS=settingsJSONinroot.json
5. Add your Heroku app as a remote
6. `git push heroku master`


## additional settings

Etherpad will complain if you run it as root. If you wish to allow it to run as
root, set an additional config variable:

```bash
heroku config:add ETHERPAD_ALLOW_ROOT=1
```


## TODO

- <del>Plugin support</del> Works.
Expand Down
4 changes: 4 additions & 0 deletions preparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@
# Write the settings hash out as JSON.
File.open('./etherpad-lite/settings.json', 'w') { |f| f.write(settings.to_json) }

if ENV['ETHERPAD_ALLOW_ROOT'] == '1'
exec('./etherpad-lite/bin/run.sh --root')
else
exec('./etherpad-lite/bin/run.sh')
end

0 comments on commit 4f9ffd9

Please sign in to comment.