Port Pocketbase to ARM64

Also code server as well
This commit is contained in:
Sam Heinz
2024-05-09 16:58:02 +10:00
parent 51d72c114e
commit d44ad22fc1
4 changed files with 14 additions and 10 deletions

View File

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

View File

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

View File

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

View File

@@ -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 <<EOF >~/.config/code-server/config.yaml