#!/bin/bash echo "=== $0" set -a . /etc/vdn/config set +a echo "Unmask services : $EXTRA_SERVICES" for i in "$EXTRA_SERVICES"; do systemctl unmask $i systemctl enable $i systemctl start $i done echo "Mask services : $EXCLUDE_SERVICES" set -x systemctl mask $EXCLUDE_SERVICES set +x echo "Unmask service ssh" systemctl unmask ssh systemctl enable ssh systemctl start ssh