diff --git a/install.sh b/install.sh index 3af427b..051ff29 100755 --- a/install.sh +++ b/install.sh @@ -20,4 +20,5 @@ 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 +chmod +x ./update.sh source ./update.sh install \ No newline at end of file diff --git a/services/adguard/update.sh b/services/adguard/update.sh index 815bb7d..7a1c2b1 100644 --- a/services/adguard/update.sh +++ b/services/adguard/update.sh @@ -2,4 +2,5 @@ mkdir -p /var/containers/adguard cp -f $(pwd)/AdGuardHome.yaml /var/containers/adguard/AdGuardHome.yaml chmod +x /etc/init.d/adguard.service -rc-update add adguard.service default \ No newline at end of file +rc-update add adguard.service default +rc-service adguard.service start \ No newline at end of file diff --git a/services/caddy/update.sh b/services/caddy/update.sh index 84555d8..5f20d9b 100644 --- a/services/caddy/update.sh +++ b/services/caddy/update.sh @@ -4,6 +4,7 @@ cp -f $(pwd)/Caddyfile /var/containers/caddy/Caddyfile chown -R podman:podman /var/containers/caddy chmod +x /etc/init.d/caddy.service rc-update add caddy.service default +rc-service caddy.service start if [ "$1" = "reload" ]; then podman exec caddy caddy reload -c /etc/caddy/Caddyfile diff --git a/services/wireguard/add_client.sh b/services/wireguard/add_client.sh index 04dcc62..70468fe 100644 --- a/services/wireguard/add_client.sh +++ b/services/wireguard/add_client.sh @@ -19,7 +19,6 @@ wg genkey | tee /etc/wireguard/clients/keys/$CLIENT_NAME.priv.key | wg pubkey > wg genpsk | tee /etc/wireguard/clients/keys/$CLIENT_NAME.psk.key cat <> /etc/wireguard/wg0.conf - [Peer] PublicKey = $(cat /etc/wireguard/clients/keys/$CLIENT_NAME.pub.key) PresharedKey = $(cat /etc/wireguard/clients/keys/$CLIENT_NAME.psk.key) diff --git a/services/wireguard/install.sh b/services/wireguard/install.sh index 49cf516..f5ece5c 100644 --- a/services/wireguard/install.sh +++ b/services/wireguard/install.sh @@ -1,4 +1,6 @@ #!/bin/sh +chmod +x add_client.sh + echo "Setting up Wireguard ..." apk add wireguard-tools wireguard-tools-openrc