mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Fixed install and update functions (#6806)
This commit is contained in:
		@@ -42,11 +42,12 @@ function update_script() {
 | 
			
		||||
 | 
			
		||||
    msg_info "Updating ${APP} to ${RELEASE}"
 | 
			
		||||
    cd /opt/outline
 | 
			
		||||
    mv /opt/.env /opt/outline
 | 
			
		||||
    export NODE_ENV=development
 | 
			
		||||
    export NODE_OPTIONS="--max-old-space-size=3584"
 | 
			
		||||
    $STD yarn install --frozen-lockfile
 | 
			
		||||
    export NODE_ENV=production
 | 
			
		||||
    $STD yarn build
 | 
			
		||||
    mv /opt/.env /opt/outline
 | 
			
		||||
    msg_ok "Updated ${APP}"
 | 
			
		||||
 | 
			
		||||
    msg_info "Starting Services"
 | 
			
		||||
 
 | 
			
		||||
@@ -54,11 +54,11 @@ sed -i "s/user:pass@postgres/${DB_USER}:${DB_PASS}@localhost/g" /opt/outline/.en
 | 
			
		||||
sed -i 's/redis:6379/localhost:6379/g' /opt/outline/.env
 | 
			
		||||
sed -i "5s#URL=#URL=http://${LOCAL_IP}#g" /opt/outline/.env
 | 
			
		||||
sed -i 's/FORCE_HTTPS=true/FORCE_HTTPS=false/g' /opt/outline/.env
 | 
			
		||||
$STD yarn install --frozen-lockfile
 | 
			
		||||
export NODE_OPTIONS="--max-old-space-size=3584"
 | 
			
		||||
$STD yarn build
 | 
			
		||||
sed -i 's/NODE_ENV=development/NODE_ENV=production/g' /opt/outline/.env
 | 
			
		||||
$STD yarn install --frozen-lockfile
 | 
			
		||||
export NODE_ENV=production
 | 
			
		||||
sed -i 's/NODE_ENV=development/NODE_ENV=production/g' /opt/outline/.env
 | 
			
		||||
$STD yarn build
 | 
			
		||||
msg_ok "Configured Outline"
 | 
			
		||||
 | 
			
		||||
msg_info "Creating Service"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user