# Create the user and group if they don't exist post_install() { if ! getent group aursec >/dev/null; then groupadd --system aursec fi if ! getent passwd aursec >/dev/null; then useradd --system -c 'aursec daemon user' -g aursec -d /var/aursec/ -s /bin/bash aursec fi echo "==> Please run 'aursec-init' and start and enable aursec-blockchain.service aursec-blockchain-mine.timer before using aursec." } post_upgrade() { post_install $1 }