Live video on the AT Protocol
at eli/fix-context-recursion 23 lines 729 B view raw
1#!/bin/sh 2 3set -e 4 5# Create streamplace group if it doesn't exist 6if ! getent group streamplace >/dev/null; then 7 groupadd streamplace 8fi 9 10# Create streamplace user if it doesn't exist 11if ! getent passwd streamplace >/dev/null; then 12 useradd -r -g streamplace -d /var/lib/streamplace -s /sbin/nologin streamplace 13fi 14 15mkdir -p /var/lib/streamplace 16mkdir -p /etc/streamplace 17chown -R streamplace:streamplace /var/lib/streamplace 18 19# Create default environment file if it doesn't exist 20if [ ! -f /etc/streamplace/streamplace.env ]; then 21 echo "# Configure your Streamplace instance by creating lines such as:" > /etc/streamplace/streamplace.env 22 echo "# SP_PUBLIC_HOST=example.com" >> /etc/streamplace/streamplace.env 23fi