main_server/scripts/server_setup.fish
2024-02-06 15:32:27 +01:00

31 lines
489 B
Fish
Executable file

#!/usr/bin/env fish
set -l user mo8it
set -l user_home /home/$user
dnf install -y \
buildah \
podman \
# For helix grammer compliation
clang
runuser -u $user -- cargo install \
mdbook \
mdbook-svgbob
loginctl enable-linger $user
runuser -u $user -- mkdir -p $user_home/.config/systemd/user
# TCP
for port in \
# HTTP
8000 \
# HTTPS
4430 \
# Git SSH
2222 \
firewall-cmd --add-port $port/tcp
end
firewall-cmd --runtime-to-permanent