mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Hotfix: Grist (#1091)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							aa7e8e0810
						
					
				
				
					commit
					415f99e3eb
				
			@@ -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"
 | 
			
		||||
		Reference in New Issue
	
	Block a user