From d44ad22fc1f429f89d2bde1679ff58e180cde36f Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 9 May 2024 16:58:02 +1000 Subject: [PATCH] Port Pocketbase to ARM64 Also code server as well --- README.md | 10 ++++++---- ct/pocketbase.sh | 2 +- install/pocketbase-install.sh | 3 ++- misc/code-server.sh | 9 +++++---- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d16a6081c..2127b0c21 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ If you would like to offer support, I would appreciate a star on the repository, | Pihole | ☑️ | | | Pingvin | ☑️ | | | Plex | ☑️ | | +| Pocketbase | ⭕ | | | Podman-Home Assistant | ☑️ | | | Podman | ☑️ | | | PostgreSQL | ☑️ | | @@ -198,7 +199,8 @@ If you would like to offer support, I would appreciate a star on the repository, ## Miscellaneous Compatibility Guide -| Script | Status | Notes | -| --------- | ------ | -------------------- | -| Olivetin | ☑️ | | -| Tailscale | ✅ | No changes required. | +| Script | Status | Notes | +| ----------- | ------ | -------------------- | +| Code Server | ⭕ | | +| Olivetin | ☑️ | | +| Tailscale | ✅ | No changes required. | diff --git a/ct/pocketbase.sh b/ct/pocketbase.sh index df3858c3f..6fb42d5b6 100644 --- a/ct/pocketbase.sh +++ b/ct/pocketbase.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # License: MIT diff --git a/install/pocketbase-install.sh b/install/pocketbase-install.sh index 29bf8813b..ef21a22ae 100644 --- a/install/pocketbase-install.sh +++ b/install/pocketbase-install.sh @@ -17,11 +17,12 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc +$STD apt-get install -y wget msg_ok "Installed Dependencies" msg_info "Installing Pocketbase" RELEASE=$(curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -wget -q https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_amd64.zip -O /tmp/pocketbase.zip +wget -q https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_arm64.zip -O /tmp/pocketbase.zip mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks} unzip -q -o /tmp/pocketbase.zip -d /opt/pocketbase diff --git a/misc/code-server.sh b/misc/code-server.sh index 0eb46dcfb..e9a9adddf 100644 --- a/misc/code-server.sh +++ b/misc/code-server.sh @@ -46,7 +46,7 @@ function error_exit() { } clear header_info -if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Install on Proxmox "; exit; fi +if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Install on Proxmox Host"; exit; fi if [ -e /etc/alpine-release ]; then echo -e "⚠️ Can't Install on Alpine"; exit; fi while true; do read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn @@ -71,6 +71,7 @@ msg_info "Installing Dependencies" apt-get update &>/dev/null apt-get install -y curl &>/dev/null apt-get install -y git &>/dev/null +apt-get install -y wget &>/dev/null msg_ok "Installed Dependencies" VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | @@ -78,9 +79,9 @@ VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest awk '{print substr($2, 3, length($2)-4) }') msg_info "Installing Code-Server v${VERSION}" -curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb &>/dev/null -dpkg -i code-server_${VERSION}_amd64.deb &>/dev/null -rm -rf code-server_${VERSION}_amd64.deb +curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_arm64.deb &>/dev/null +dpkg -i code-server_${VERSION}_arm64.deb &>/dev/null +rm -rf code-server_${VERSION}_arm64.deb mkdir -p ~/.config/code-server/ systemctl enable -q --now code-server@$USER cat <~/.config/code-server/config.yaml