mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Refactor (#6306)
This commit is contained in:
		@@ -27,6 +27,7 @@ function update_script() {
 | 
				
			|||||||
      msg_error "No ${APP} Installation Found!"
 | 
					      msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
      exit
 | 
					      exit
 | 
				
			||||||
   fi
 | 
					   fi
 | 
				
			||||||
 | 
					   
 | 
				
			||||||
   msg_info "Updating ${APP}"
 | 
					   msg_info "Updating ${APP}"
 | 
				
			||||||
   $STD apt-get update
 | 
					   $STD apt-get update
 | 
				
			||||||
   $STD apt-get -y upgrade
 | 
					   $STD apt-get -y upgrade
 | 
				
			||||||
@@ -41,4 +42,4 @@ description
 | 
				
			|||||||
msg_ok "Completed Successfully!\n"
 | 
					msg_ok "Completed Successfully!\n"
 | 
				
			||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
 | 
					echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
 | 
				
			||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
 | 
					echo -e "${INFO}${YW} Access it using the following URL:${CL}"
 | 
				
			||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
 | 
					echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,20 +14,20 @@ network_check
 | 
				
			|||||||
update_os
 | 
					update_os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Dependencies"
 | 
					msg_info "Installing Dependencies"
 | 
				
			||||||
$STD apt-get install -y apt-transport-https
 | 
					$STD apt-get install -y \
 | 
				
			||||||
$STD apt-get install -y software-properties-common
 | 
					  apt-transport-https \
 | 
				
			||||||
 | 
					  software-properties-common
 | 
				
			||||||
msg_ok "Installed Dependencies"
 | 
					msg_ok "Installed Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Setting up Grafana Repository"
 | 
					msg_info "Setting up Grafana Repository"
 | 
				
			||||||
curl -fsSL "https://apt.grafana.com/gpg.key" -o "/usr/share/keyrings/grafana.key"
 | 
					curl -fsSL "https://apt.grafana.com/gpg.key" -o "/usr/share/keyrings/grafana.key"
 | 
				
			||||||
sh -c 'echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" > /etc/apt/sources.list.d/grafana.list'
 | 
					echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" >/etc/apt/sources.list.d/grafana.list
 | 
				
			||||||
msg_ok "Set up Grafana Repository"
 | 
					msg_ok "Set up Grafana Repository"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Grafana"
 | 
					msg_info "Installing Grafana"
 | 
				
			||||||
$STD apt-get update
 | 
					$STD apt-get update
 | 
				
			||||||
$STD apt-get install -y grafana
 | 
					$STD apt-get install -y grafana
 | 
				
			||||||
systemctl start grafana-server
 | 
					systemctl enable -q --now  grafana-server
 | 
				
			||||||
systemctl enable --now -q grafana-server.service
 | 
					 | 
				
			||||||
msg_ok "Installed Grafana"
 | 
					msg_ok "Installed Grafana"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
motd_ssh
 | 
					motd_ssh
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user