Service install scripts

This commit is contained in:
Maurice
2025-09-29 21:18:21 +02:00
parent f26389d14e
commit 20adfdb96d
5 changed files with 15 additions and 10 deletions

View File

@@ -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
```

View File

@@ -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

View File

@@ -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

View File

@@ -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

6
setup.sh Normal file
View File

@@ -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