Update actualbudget.sh
This commit is contained in:
		
							parent
							
								
									4c8b36876a
								
							
						
					
					
						commit
						902569496a
					
				| @ -28,20 +28,7 @@ function update_script() { | |||||||
|     msg_error "No ${APP} Installation Found!" |     msg_error "No ${APP} Installation Found!" | ||||||
|     exit |     exit | ||||||
|   fi |   fi | ||||||
| 
 |  | ||||||
|   RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') |   RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') | ||||||
| function update_script() { |  | ||||||
|   header_info |  | ||||||
|   check_container_storage |  | ||||||
|   check_container_resources |  | ||||||
| 
 |  | ||||||
|   if [[ ! -d /opt/actualbudget ]]; then |  | ||||||
|     msg_error "No ${APP} Installation Found!" |  | ||||||
|     exit |  | ||||||
|   fi |  | ||||||
| 
 |  | ||||||
|   RELEASE=$(curl -fsSL https://api.github.com/repos/actualbudget/actual/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') |  | ||||||
| 
 |  | ||||||
|   if [[ -f /opt/actualbudget-data/config.json ]]; then |   if [[ -f /opt/actualbudget-data/config.json ]]; then | ||||||
|     if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then |     if [[ ! -f /opt/actualbudget_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/actualbudget_version.txt)" ]]; then | ||||||
|       msg_info "Stopping ${APP}" |       msg_info "Stopping ${APP}" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 CanbiZ
						CanbiZ