Debian-Packaging
This commit is contained in:
5
debian/DEBIAN/control
vendored
Normal file
5
debian/DEBIAN/control
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
Package: foodoord
|
||||
Version: 3.0
|
||||
Maintainer: Bandie <bandie@chaospott.de>
|
||||
Architecture: all
|
||||
Description: Control the doors of the club, ja!
|
17
debian/DEBIAN/postinst
vendored
Executable file
17
debian/DEBIAN/postinst
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
echo "Creating group and users.."
|
||||
groupadd foodoor
|
||||
useradd -M -d /var/lib/foodoor/close -G foodoor -s /bin/sh close
|
||||
useradd -M -d /var/lib/foodoor/open -G foodoor -s /bin/sh open
|
||||
useradd -M -d /var/lib/foodoor/door -G foodoor -s /bin/sh door
|
||||
|
||||
echo "Chown homes"
|
||||
for u in "close open door"; do
|
||||
chown ${u}:${u} ${u}
|
||||
done
|
||||
|
||||
echo "Create /state"
|
||||
touch /state
|
||||
chgrp root:foodoor /state
|
||||
chmod 664 /state
|
||||
|
Reference in New Issue
Block a user