Skip to content

Commit

Permalink
keep configs in deb
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Nov 10, 2021
1 parent 639d021 commit f2e65e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "psrt"
version = "0.1.12"
version = "0.1.13"
edition = "2021"
authors = ["Sergei S. <[email protected]>"]
license = "Apache-2.0"
Expand Down
8 changes: 8 additions & 0 deletions make-deb/debian/postinst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/sh

( useradd -r psrt -s /usr/sbin/nologin -d / || exit 0 )
for f in config.yml acl.yml; do
if [ ! -f /etc/psrtd/$f ]; then
cp -prvf /etc/psrtd/$f-dist /etc/psrtd/$f
fi
done
touch /etc/psrtd/psrt-passwd
chmod 600 /etc/psrtd/psrt-passwd
chown psrt /etc/psrtd/psrt-passwd
systemctl enable psrtd
cat << EOF
Service psrtd enabled
Expand Down
File renamed without changes.
File renamed without changes.
Empty file removed make-deb/etc/psrtd/psrt-passwd
Empty file.

0 comments on commit f2e65e5

Please sign in to comment.