#!/bin/sh
set -e

if ! id -u satnogs >/dev/null 2>&1; then
    adduser --system --no-create-home --group satnogs
fi

systemctl daemon-reload
systemctl enable satnogs-client.service
systemctl start satnogs-client.service

exit 0
