#!/bin/bash

confdir="/var/lib/quasselcore"
certfile="${confdir}/quasselCert.pem"

# Create the certificate
if [[ ! -e ${certfile} ]]; then
	openssl req -x509 -nodes -days 3650 -newkey rsa:4096 \
		-keyout ${certfile} \
		-out ${certfile} \
		-batch || { echo "Failed to create the certificate"; exit 1; }
fi

chown -R quassel:quassel ${confdir}

params="$* --port=${QUASSEL_PORT}"

echo "Starting quasselcore with ${params}"

exec /usr/bin/quasselcore ${params}

#!/bin/bash

confdir="/var/lib/quasselcore"
certfile="${confdir}/quasselCert.pem"

# Create the certificate
if [[ ! -e ${certfile} ]]; then
	openssl req -x509 -nodes -days 3650 -newkey rsa:4096 \
		-keyout ${certfile} \
		-out ${certfile} \
		-batch || { echo "Failed to create the certificate"; exit 1; }
fi

chown -R quasselcore:quasselcore ${confdir}

params="$* --port=${QUASSEL_PORT}"

echo "Starting quasselcore with ${params}"

exec /usr/bin/quasselcore ${params}

Fix user in the wrap script
Fix user in the wrap script
