From 20adfdb96d3df32d6b13d9f7ba9dfe89434b0e27 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 29 Sep 2025 21:18:21 +0200 Subject: [PATCH] Service install scripts --- SETUP.md | 6 +++--- install.sh | 8 ++++---- installation/basic.sh | 4 +--- installation/podman.sh | 1 + setup.sh | 6 ++++++ 5 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 setup.sh diff --git a/SETUP.md b/SETUP.md index 6b81ab8..e3b8bc3 100644 --- a/SETUP.md +++ b/SETUP.md @@ -32,7 +32,7 @@ FIRST. Make sure your public key is configured for SSH! Else, next step will LOC Then, run install.sh by getting it from the internet (wget is in busybox): ```sh -wget https://TODO -chmod +x install.sh -./install.sh +wget https://git.plabble.org/Maurice/alpine-server-setup/raw/branch/main/setup.sh +chmod +x setup.sh +./setup.sh ``` \ No newline at end of file diff --git a/install.sh b/install.sh index 2ffc61c..13d53e9 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,6 @@ #!/bin/sh - -# echo "Installing Git & cloning installation scripts" -apk add git -git clone https://git.plabble.org/Maurice/alpine-server-setup.git ./config +clear +echo "Starting installation..." # Install podman-openrc tool apk add cargo @@ -17,5 +15,7 @@ source ./podman.sh cd "$base_dir" +read -n 1 -s -r -p "Press any key to start service installation..." + # Run update script with install argument to set up services source ./update.sh install \ No newline at end of file diff --git a/installation/basic.sh b/installation/basic.sh index 5f0d4e4..49def1d 100644 --- a/installation/basic.sh +++ b/installation/basic.sh @@ -1,5 +1,5 @@ #!/bin/sh -echo "Basic setup" +echo "Basic setup..." # Enable community repo sed -i 's|^#\(http.*/community\)$|\1|' /etc/apk/repositories @@ -14,6 +14,4 @@ EOF # Allow local.d services rc-update add local default -rc-service local start - rc-update add sysctl \ No newline at end of file diff --git a/installation/podman.sh b/installation/podman.sh index 4c82aad..0e4fafa 100644 --- a/installation/podman.sh +++ b/installation/podman.sh @@ -23,6 +23,7 @@ mount --make-rshared / EOF chmod +x /etc/local.d/mount-rshared.start +rc-service local start # Allow ports >= 53 to be rootless bound, persistent echo "net.ipv4.ip_unprivileged_port_start=53" >> /etc/sysctl.d/podman.conf diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..2dc3c39 --- /dev/null +++ b/setup.sh @@ -0,0 +1,6 @@ +# echo "Installing Git & cloning installation scripts" +apk add git +git clone https://git.plabble.org/Maurice/alpine-server-setup.git ./config + +cd ./config +source ./install.sh \ No newline at end of file