mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +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"
|
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"
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user