Service install scripts
This commit is contained in:
6
SETUP.md
6
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):
|
Then, run install.sh by getting it from the internet (wget is in busybox):
|
||||||
```sh
|
```sh
|
||||||
wget https://TODO
|
wget https://git.plabble.org/Maurice/alpine-server-setup/raw/branch/main/setup.sh
|
||||||
chmod +x install.sh
|
chmod +x setup.sh
|
||||||
./install.sh
|
./setup.sh
|
||||||
```
|
```
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
clear
|
||||||
# echo "Installing Git & cloning installation scripts"
|
echo "Starting installation..."
|
||||||
apk add git
|
|
||||||
git clone https://git.plabble.org/Maurice/alpine-server-setup.git ./config
|
|
||||||
|
|
||||||
# Install podman-openrc tool
|
# Install podman-openrc tool
|
||||||
apk add cargo
|
apk add cargo
|
||||||
@@ -17,5 +15,7 @@ source ./podman.sh
|
|||||||
|
|
||||||
cd "$base_dir"
|
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
|
# Run update script with install argument to set up services
|
||||||
source ./update.sh install
|
source ./update.sh install
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "Basic setup"
|
echo "Basic setup..."
|
||||||
|
|
||||||
# Enable community repo
|
# Enable community repo
|
||||||
sed -i 's|^#\(http.*/community\)$|\1|' /etc/apk/repositories
|
sed -i 's|^#\(http.*/community\)$|\1|' /etc/apk/repositories
|
||||||
@@ -14,6 +14,4 @@ EOF
|
|||||||
|
|
||||||
# Allow local.d services
|
# Allow local.d services
|
||||||
rc-update add local default
|
rc-update add local default
|
||||||
rc-service local start
|
|
||||||
|
|
||||||
rc-update add sysctl
|
rc-update add sysctl
|
||||||
@@ -23,6 +23,7 @@ mount --make-rshared /
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x /etc/local.d/mount-rshared.start
|
chmod +x /etc/local.d/mount-rshared.start
|
||||||
|
rc-service local start
|
||||||
|
|
||||||
# Allow ports >= 53 to be rootless bound, persistent
|
# Allow ports >= 53 to be rootless bound, persistent
|
||||||
echo "net.ipv4.ip_unprivileged_port_start=53" >> /etc/sysctl.d/podman.conf
|
echo "net.ipv4.ip_unprivileged_port_start=53" >> /etc/sysctl.d/podman.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user