mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Fix bookstack.sh: Ignore empty folder (#1388)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2ba1bfa3f1
						
					
				
				
					commit
					14cbba17f3
				
			@@ -44,9 +44,9 @@ function update_script() {
 | 
				
			|||||||
    unzip -q /opt/v${RELEASE}.zip -d /opt
 | 
					    unzip -q /opt/v${RELEASE}.zip -d /opt
 | 
				
			||||||
    mv /opt/BookStack-${RELEASE} /opt/bookstack
 | 
					    mv /opt/BookStack-${RELEASE} /opt/bookstack
 | 
				
			||||||
    cp /opt/bookstack-backup/.env /opt/bookstack/.env
 | 
					    cp /opt/bookstack-backup/.env /opt/bookstack/.env
 | 
				
			||||||
    cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/
 | 
					    cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ 2>/dev/null || true
 | 
				
			||||||
    cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/
 | 
					    cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ 2>/dev/null || true
 | 
				
			||||||
    cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/
 | 
					    cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ 2>/dev/null || true
 | 
				
			||||||
    cd /opt/bookstack
 | 
					    cd /opt/bookstack
 | 
				
			||||||
    COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null
 | 
					    COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null
 | 
				
			||||||
    php artisan migrate --force &>/dev/null
 | 
					    php artisan migrate --force &>/dev/null
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user