#!/bin/sh set -eu case "$1" in configure) if ! getent passwd mission-core-node >/dev/null; then adduser --system --group --home /var/lib/mission-core-node --no-create-home --disabled-login mission-core-node fi # Only bootstrap required to open the GUI. Operational configuration is a # versioned job started by «Настройка окружения → Сконфигурировать». if [ -d /run/systemd/system ]; then systemctl daemon-reload systemctl enable mission-core-node.service systemctl restart mission-core-node.service fi ;; esac