From 859f705c1e2be9d3fd91d5c274e00f42306d35ca Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 23 Nov 2024 15:16:52 +0100 Subject: [PATCH] License Headers --- data/dnsfix.sh | 3 +++ data/index.html | 5 +++++ installation/ca.sh | 3 +++ installation/dhcp.sh | 3 +++ installation/dns.sh | 3 +++ installation/docker.sh | 3 +++ installation/prep.sh | 3 +++ installation/static_ip.sh | 3 +++ installation/utils.sh | 3 +++ installation/webserver.sh | 3 +++ 10 files changed, 32 insertions(+) diff --git a/data/dnsfix.sh b/data/dnsfix.sh index d83c48d..bd04751 100755 --- a/data/dnsfix.sh +++ b/data/dnsfix.sh @@ -1,5 +1,8 @@ #!/bin/sh +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + if command -v pkexec >/dev/null 2>&1; then pkexec sh -c "echo \"nameserver 192.168.16.1\" | tee /etc/resolv.conf >/dev/null && sudo chattr +i /etc/resolv.conf" elif command -v sudo >/dev/null 2>&1; then diff --git a/data/index.html b/data/index.html index dd8d7be..edec5f3 100644 --- a/data/index.html +++ b/data/index.html @@ -1,6 +1,11 @@ + + diff --git a/installation/ca.sh b/installation/ca.sh index 7d3d658..c0021c4 100755 --- a/installation/ca.sh +++ b/installation/ca.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo openssl genrsa -out /root/ca.key 4096 sudo openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /root/ca.crt -subj "/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/CN=INTERSTELLAR" sudo cp /root/ca.crt /usr/local/share/ca-certificates/ diff --git a/installation/dhcp.sh b/installation/dhcp.sh index 679e0df..9c6ed0b 100755 --- a/installation/dhcp.sh +++ b/installation/dhcp.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo apt update sudo apt install -y isc-dhcp-server diff --git a/installation/dns.sh b/installation/dns.sh index d67b17f..03ab749 100755 --- a/installation/dns.sh +++ b/installation/dns.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo apt update sudo apt install -y bind9 bind9utils bind9-doc echo "nameserver 192.168.16.1" >/etc/resolv.conf diff --git a/installation/docker.sh b/installation/docker.sh index d64770e..a4b7c13 100755 --- a/installation/docker.sh +++ b/installation/docker.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings diff --git a/installation/prep.sh b/installation/prep.sh index 357db33..c11bbac 100755 --- a/installation/prep.sh +++ b/installation/prep.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + apt update apt install -y sudo git diff --git a/installation/static_ip.sh b/installation/static_ip.sh index b60bdb5..be4acd2 100755 --- a/installation/static_ip.sh +++ b/installation/static_ip.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + config="auto $1 iface $1 inet static address 192.168.16.1 diff --git a/installation/utils.sh b/installation/utils.sh index e247ad4..d6fbdde 100755 --- a/installation/utils.sh +++ b/installation/utils.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo apt update sudo apt install -y curl diff --git a/installation/webserver.sh b/installation/webserver.sh index 952c596..3b02905 100755 --- a/installation/webserver.sh +++ b/installation/webserver.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Copyright (c) 2024 Interstellar Development + sudo apt update sudo apt install -y nginx sudo systemctl start nginx