Hotfix: Grist (#1091)

This commit is contained in:
Michel Roegl-Brunner 2024-12-29 21:23:30 +01:00 committed by GitHub
parent aa7e8e0810
commit 415f99e3eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
APP="Grist" APP="Grist"
var_tags="database;spreadsheet" var_tags="database;spreadsheet"
var_cpu="1" var_cpu="1"
var_ram="1024" var_ram="2048"
var_disk="4" var_disk="4"
var_os="debian" var_os="debian"
var_version="12" var_version="12"

View File

@ -22,6 +22,7 @@ $STD apt-get install -y \
gnupg \ gnupg \
ca-certificates \ ca-certificates \
mc \ mc \
unzip \
python3.11-venv python3.11-venv
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@ -43,9 +44,9 @@ wget -q https://github.com/gristlabs/grist-core/archive/refs/tags/v${RELEASE}.zi
unzip -q v$RELEASE.zip unzip -q v$RELEASE.zip
mv grist-core-${RELEASE} grist mv grist-core-${RELEASE} grist
cd grist cd grist
yarn install $STD yarn install
yarn run build:prod $STD yarn run build:prod
yarn run install:python $STD yarn run install:python
cat <<EOF >/opt/grist/.env cat <<EOF >/opt/grist/.env
NODE_ENV=production NODE_ENV=production
GRIST_HOST=0.0.0.0 GRIST_HOST=0.0.0.0
@ -68,6 +69,7 @@ EnvironmentFile=-/opt/grist/.env
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable -q --now grist.service systemctl enable -q --now grist.service
msg_ok "Created Service" msg_ok "Created Service"
@ -78,4 +80,4 @@ msg_info "Cleaning up"
rm -rf /opt/v${RELEASE}.zip rm -rf /opt/v${RELEASE}.zip
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"