2022-04-20 00:29:47 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
source /etc/os-release
|
2023-02-07 19:52:54 +01:00
|
|
|
export OS=$ID
|
2022-04-20 00:29:47 +02:00
|
|
|
|
2023-02-07 19:52:54 +01:00
|
|
|
# Generate OpenSSH server key pair
|
|
|
|
ssh-keygen -f /etc/ssh/ed25519 -t ed25519 -N ""
|
|
|
|
ssh-keygen -lvf /etc/ssh/ed25519 > /etc/ssh/ed25519.fp
|
2022-05-03 15:41:14 +02:00
|
|
|
|
2023-02-07 19:52:54 +01:00
|
|
|
source /install/install.sh
|
2022-05-03 15:41:14 +02:00
|
|
|
|
2023-02-07 19:52:54 +01:00
|
|
|
if [[ $OS = "arch" ]]; then
|
2022-04-20 00:29:47 +02:00
|
|
|
systemctl enable sshd
|
|
|
|
systemctl enable knot
|
|
|
|
systemctl enable nginx
|
2022-05-04 17:45:05 +02:00
|
|
|
systemctl enable tor
|
2022-04-20 00:29:47 +02:00
|
|
|
systemctl enable php-fpm
|
2022-07-20 20:06:29 +02:00
|
|
|
|
|
|
|
pacman-key --init
|
|
|
|
pacman-key --populate
|
2022-04-20 00:29:47 +02:00
|
|
|
fi
|