From a8b20f4842697fb8889ee8963f230373d68bf313 Mon Sep 17 00:00:00 2001 From: Jocelyn Knight <jocelyn@bm-devservices.com> Date: Wed, 3 Jul 2024 15:15:45 -0700 Subject: [PATCH] Adds a version.txt file to record the installed version. This creates a version.txt file in the root of the pocketbase directory allowing for easy identification of the currently installed PocketBase version. --- install/pocketbase-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/pocketbase-install.sh b/install/pocketbase-install.sh index 29bf8813..d600e9c3 100644 --- a/install/pocketbase-install.sh +++ b/install/pocketbase-install.sh @@ -25,6 +25,9 @@ wget -q https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/p mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks} unzip -q -o /tmp/pocketbase.zip -d /opt/pocketbase +# Create a file with the version information +echo "Pocketbase version: ${RELEASE}" > /opt/pocketbase/version.txt + cat <<EOF >/etc/systemd/system/pocketbase.service [Unit] Description = pocketbase