mumble-ldapauth/fs-infmath-mumble-ldapauth/debian/postinst
2021-06-02 14:30:51 +02:00

18 lines
476 B
Bash

#!/bin/bash
echo "Creating user mumble-server, this may fail if mumble-server is not a system account."
adduser --quiet --system mumble-server --group --no-create-home --home "/usr/share/mumble-server"
set -e
#DEBHELPER#
LOG_DIR="var/log/mumble-scripts"
BIN_FILE="usr/share/mumble-scripts//Authenticators/LDAP/LDAPauth.py"
echo "Making sure mumble-server owns log dir"
chown mumble-server:mumble-server "${LOG_DIR}"
echo "Making script executable"
chmod +x ${BIN_FILE}