mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update trilium.sh
Switch to TriliumNext
This commit is contained in:
		
							parent
							
								
									e428bb8604
								
							
						
					
					
						commit
						9c88dcdbd6
					
				| @ -55,9 +55,7 @@ function default_settings() { | |||||||
| function update_script() { | function update_script() { | ||||||
| header_info | header_info | ||||||
| if [[ ! -d /opt/trilium ]]; then msg_error "No ${APP} Installation Found!"; exit; fi | if [[ ! -d /opt/trilium ]]; then msg_error "No ${APP} Installation Found!"; exit; fi | ||||||
| RELEASE=$(curl -s https://api.github.com/repos/zadam/trilium/releases/latest | | RELEASE=$(curl -s https://api.github.com/repos/TriliumNext/Notes/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') | ||||||
|     grep "tag_name" | |  | ||||||
|     awk '{print substr($2, 3, length($2)-4) }') |  | ||||||
|      |      | ||||||
| msg_info "Stopping ${APP}" | msg_info "Stopping ${APP}" | ||||||
| systemctl stop trilium.service | systemctl stop trilium.service | ||||||
| @ -65,7 +63,7 @@ sleep 1 | |||||||
| msg_ok "Stopped ${APP}" | msg_ok "Stopped ${APP}" | ||||||
| 
 | 
 | ||||||
| msg_info "Updating to v${RELEASE}" | msg_info "Updating to v${RELEASE}" | ||||||
| wget -q https://github.com/zadam/trilium/releases/download/v$RELEASE/trilium-linux-x64-server-$RELEASE.tar.xz | wget -q https://github.com/TriliumNext/Notes/releases/download/v$RELEASE/trilium-linux-x64-server-$RELEASE.tar.xz | ||||||
| tar -xvf trilium-linux-x64-server-$RELEASE.tar.xz &>/dev/null | tar -xvf trilium-linux-x64-server-$RELEASE.tar.xz &>/dev/null | ||||||
| cp -r trilium-linux-x64-server/* /opt/trilium/ | cp -r trilium-linux-x64-server/* /opt/trilium/ | ||||||
| msg_ok "Updated to v${RELEASE}" | msg_ok "Updated to v${RELEASE}" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user