mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 10:55:10 +00:00
Hotfix: Grist (#1091)
This commit is contained in:
parent
aa7e8e0810
commit
415f99e3eb
@ -6,7 +6,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
|
||||
APP="Grist"
|
||||
var_tags="database;spreadsheet"
|
||||
var_cpu="1"
|
||||
var_ram="1024"
|
||||
var_ram="2048"
|
||||
var_disk="4"
|
||||
var_os="debian"
|
||||
var_version="12"
|
||||
|
@ -22,6 +22,7 @@ $STD apt-get install -y \
|
||||
gnupg \
|
||||
ca-certificates \
|
||||
mc \
|
||||
unzip \
|
||||
python3.11-venv
|
||||
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
|
||||
mv grist-core-${RELEASE} grist
|
||||
cd grist
|
||||
yarn install
|
||||
yarn run build:prod
|
||||
yarn run install:python
|
||||
$STD yarn install
|
||||
$STD yarn run build:prod
|
||||
$STD yarn run install:python
|
||||
cat <<EOF >/opt/grist/.env
|
||||
NODE_ENV=production
|
||||
GRIST_HOST=0.0.0.0
|
||||
@ -68,6 +69,7 @@ EnvironmentFile=-/opt/grist/.env
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
systemctl enable -q --now grist.service
|
||||
msg_ok "Created Service"
|
||||
|
||||
@ -78,4 +80,4 @@ msg_info "Cleaning up"
|
||||
rm -rf /opt/v${RELEASE}.zip
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Cleaned"
|
Loading…
Reference in New Issue
Block a user