Merge pull request #13 from ryanabx/features/sysusers
Add cosmic greeter sysuser and tmpfile configurations for systemd-sysusers and systemd-tmpfiles
This commit is contained in:
commit
8fb7b9b294
3 changed files with 17 additions and 1 deletions
2
debian/cosmic-greeter-sysusers.conf
vendored
Normal file
2
debian/cosmic-greeter-sysusers.conf
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#Type Name ID GECOS Home directory Shell
|
||||||
|
u cosmic-greeter - "Cosmic Greeter Account" /var/lib/cosmic-greeter -
|
||||||
2
debian/cosmic-greeter-tmpfiles.conf
vendored
Normal file
2
debian/cosmic-greeter-tmpfiles.conf
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Home directory of cosmic-greeter
|
||||||
|
d /var/lib/cosmic-greeter 0750 cosmic-greeter cosmic-greeter
|
||||||
14
justfile
14
justfile
|
|
@ -11,6 +11,16 @@ export INSTALL_DIR := base-dir / 'share'
|
||||||
bin-src := 'target' / 'release' / name
|
bin-src := 'target' / 'release' / name
|
||||||
bin-dst := base-dir / 'bin' / name
|
bin-dst := base-dir / 'bin' / name
|
||||||
|
|
||||||
|
# Systemd sysusers/tmpfiles components directories
|
||||||
|
lib-dir := base-dir / 'lib'
|
||||||
|
|
||||||
|
# sysusers.d
|
||||||
|
sysusers-src := 'debian' / 'cosmic-greeter-sysusers.conf'
|
||||||
|
sysusers-dst := lib-dir / 'sysusers.d' / name + '.conf'
|
||||||
|
# tmpfiles.d
|
||||||
|
tmpfiles-src := 'debian' / 'cosmic-greeter-tmpfiles.conf'
|
||||||
|
tmpfiles-dst := lib-dir / 'tmpfiles.d' / name + '.conf'
|
||||||
|
|
||||||
daemon-src := 'target' / 'release' / name + '-daemon'
|
daemon-src := 'target' / 'release' / name + '-daemon'
|
||||||
daemon-dst := base-dir / 'bin' / name + '-daemon'
|
daemon-dst := base-dir / 'bin' / name + '-daemon'
|
||||||
|
|
||||||
|
|
@ -54,10 +64,12 @@ install:
|
||||||
install -Dm0755 {{bin-src}} {{bin-dst}}
|
install -Dm0755 {{bin-src}} {{bin-dst}}
|
||||||
install -Dm0755 {{daemon-src}} {{daemon-dst}}
|
install -Dm0755 {{daemon-src}} {{daemon-dst}}
|
||||||
install -Dm0755 {{dbus-src}} {{dbus-dst}}
|
install -Dm0755 {{dbus-src}} {{dbus-dst}}
|
||||||
|
install -Dm0644 {{sysusers-src}} {{sysusers-dst}}
|
||||||
|
install -Dm0644 {{tmpfiles-src}} {{tmpfiles-dst}}
|
||||||
|
|
||||||
# Uninstalls installed files
|
# Uninstalls installed files
|
||||||
uninstall:
|
uninstall:
|
||||||
rm {{bin-dst}} {{daemon-dst}} {{dbus-dst}}
|
rm {{bin-dst}} {{daemon-dst}} {{dbus-dst}} {{sysusers-dst}} {{tmpfiles-dst}}
|
||||||
|
|
||||||
# Vendor dependencies locally
|
# Vendor dependencies locally
|
||||||
vendor:
|
vendor:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue