Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394083
kafka.postinst
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
900 B
Subscribers
None
kafka.postinst
View Options
#!/bin/sh
# postinst script for kafka
#
# see: dh_installdeb(1)
set -e
case "$1" in
configure|reconfigure)
if ! getent passwd kafka >/dev/null; then
# Adding system user: kafka.
adduser \
--system \
--group \
--no-create-home \
--home /nonexistent \
--gecos "Apache Kafka" \
--shell /bin/false \
kafka >/dev/null 2>/dev/null || :
fi
# chown kafka directories
chown kafka:kafka /var/log/kafka
chown kafka:kafka /var/spool/kafka
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Wed, Jun 4, 7:21 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3265505
Attached To
rPKAFKA Kafka Debian packaging
Event Timeline
Log In to Comment