You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
384 B
31 lines
384 B
#!/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
|
|
|
|
|