Browse Source

Debian changes for store

pull/1/head
Stephen 10 months ago
parent
commit
8ba00c0d3b
6 changed files with 16 additions and 5 deletions
  1. +1
    -1
      Cargo.lock
  2. +4
    -3
      Cargo.toml
  3. +1
    -1
      config.example
  4. +1
    -0
      debian/cat-disruptor.service
  5. +6
    -0
      debian/config.json
  6. +3
    -0
      debian/maintainer_scripts/postinst

+ 1
- 1
Cargo.lock View File

@ -124,7 +124,7 @@ dependencies = [
[[package]]
name = "cat_disruptor_7000"
version = "0.1.1"
version = "0.2.0"
dependencies = [
"async-trait",
"matrix-sdk",


+ 4
- 3
Cargo.toml View File

@ -1,6 +1,6 @@
[package]
name = "cat_disruptor_7000"
version = "0.1.1"
version = "0.2.0"
authors = ["Stephen D <@stephen:m.scd31.com>"]
edition = "2018"
@ -31,5 +31,6 @@ priority = "optional"
assets = [
["target/release/cat_disruptor_7000", "usr/bin/", "755"],
["debian/cat-disruptor.service", "/lib/systemd/system/cat-disruptor.service", "644"],
["config.example", "/etc/cat_disruptor_7000/config.json", "644"]
]
["debian/config.json", "/etc/cat_disruptor_7000/config.json", "644"]
]
maintainer-scripts = "debian/maintainer_scripts/"

+ 1
- 1
config.example View File

@ -1,6 +1,6 @@
{
"homeserver_url": "changeme",
"username": "changeme",
"password": "changeme"
"password": "changeme",
"store_path": "crypto"
}

+ 1
- 0
debian/cat-disruptor.service View File

@ -8,6 +8,7 @@ ExecStart=/usr/bin/cat_disruptor_7000
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
User=cat-disruptor
[Install]
WantedBy=multi-user.target

+ 6
- 0
debian/config.json View File

@ -0,0 +1,6 @@
{
"homeserver_url": "changeme",
"username": "changeme",
"password": "changeme",
"store_path": "/etc/cat_disruptor_7000/store"
}

+ 3
- 0
debian/maintainer_scripts/postinst View File

@ -0,0 +1,3 @@
adduser --system cat-disruptor
mkdir -p /etc/cat_disruptor_7000/store
chown cat-disruptor /etc/cat_disruptor_7000/store

Loading…
Cancel
Save