Skip to content

Commit

Permalink
Change DB location for Homu
Browse files Browse the repository at this point in the history
This makes it harder to accidentally delete the database.
  • Loading branch information
Coder206 committed Apr 22, 2017
1 parent 5e6044a commit 16ef531
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homu/files/cfg.toml
Expand Up @@ -307,3 +307,6 @@ secret = "{{ pillar["homu"]["gh-webhook-secret"] }}"

[repo.dwrote-rs.status.appveyor]
context = 'continuous-integration/appveyor/branch'

[db]
file = {{ db }}
6 changes: 6 additions & 0 deletions homu/init.sls
Expand Up @@ -50,3 +50,9 @@ homu:
- require:
- pip: homu
- file: /home/servo/homu/cfg.toml
/var/homu:
file.directory:
- user: servo/servo
- group: servo/servo
- dir_mode: 700
1 change: 1 addition & 0 deletions homu/map.jinja
@@ -1,5 +1,6 @@
{%
set homu = {
'db': '/var/homu/main.db',
'rev': '83689f0d52e64292a4eb50def23d0e9028f8aba1'
}
%}

0 comments on commit 16ef531

Please sign in to comment.