#!/bin/bash

current_user=$(logname)

post_install() {
	if ! getent group seat > /dev/null; then
		groupadd --system seat
	fi
	if ! id -nG ${current_user} | grep -qw seat; then
		usermod -aG seat ${current_user}
	fi
}

post_upgrade() {
	if ! getent group seat > /dev/null; then
		groupadd --system seat
	fi
	if ! id -nG ${current_user} | grep -qw seat; then
		usermod -aG seat ${current_user}
	fi
}
