mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 19:08:06 +00:00
some bugfixes
This commit is contained in:
parent
c754f4e243
commit
024480d0a4
@ -29,14 +29,10 @@ msg_info "Installing Node.js"
|
|||||||
mkdir -p /etc/apt/keyrings
|
mkdir -p /etc/apt/keyrings
|
||||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y nodejs
|
$STD apt-get install -y nodejs
|
||||||
msg_ok "Installed Node.js"
|
|
||||||
|
|
||||||
msg_info "Installing yarn"
|
|
||||||
$STD npm install -g yarn
|
$STD npm install -g yarn
|
||||||
msg_ok "Installed yarn $(yarn --version)"
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
msg_info "Installing Grist"
|
msg_info "Installing Grist"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/gristlabs/grist-core/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/gristlabs/grist-core/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
@ -45,18 +41,17 @@ 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
|
||||||
$STD yarn install
|
yarn install
|
||||||
$STD yarn run build:prod
|
yarn run build:prod
|
||||||
$STD yarn run install:python
|
yarn run install:python
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
|
||||||
|
|
||||||
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
|
||||||
EOF
|
EOF
|
||||||
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed Grist"
|
msg_ok "Installed Grist"
|
||||||
|
|
||||||
|
msg_info "Create Service"
|
||||||
cat <<EOF >/etc/systemd/system/grist.service
|
cat <<EOF >/etc/systemd/system/grist.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Grist
|
Description=Grist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user