mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-25 11:53:43 +01:00
Egh
This commit is contained in:
parent
adced97c43
commit
9fbae11900
@ -149,7 +149,6 @@ services_enable=(
|
|||||||
firewalld.service
|
firewalld.service
|
||||||
prometheus-node-exporter.service
|
prometheus-node-exporter.service
|
||||||
rsyslog.service
|
rsyslog.service
|
||||||
sshd.service
|
|
||||||
systemd-networkd
|
systemd-networkd
|
||||||
tailscaled.service
|
tailscaled.service
|
||||||
)
|
)
|
||||||
@ -319,6 +318,11 @@ function disable_services() {
|
|||||||
function enable_services() {
|
function enable_services() {
|
||||||
action_label "ENABLING SYSTEMD SERVICES"
|
action_label "ENABLING SYSTEMD SERVICES"
|
||||||
for service in "${services_enable[@]}"; do sudo systemctl enable --now "$service"; done
|
for service in "${services_enable[@]}"; do sudo systemctl enable --now "$service"; done
|
||||||
|
if test -f /etc/debian_version; then
|
||||||
|
sudo systemctl enable --now ssh.service
|
||||||
|
elif test -f /etc/redhat-release; then
|
||||||
|
sudo systemctl enable --now sshd.service
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function disable_ipv6() {
|
function disable_ipv6() {
|
||||||
|
Loading…
Reference in New Issue
Block a user