mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-11-04 12:59:22 +00:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			28085bb2e7
			...
			de1a4b0914
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					de1a4b0914 | ||
| 
						 | 
					aec826bbb3 | ||
| 
						 | 
					9db6aa8fbb | ||
| 
						 | 
					bfa2b0c0ee | ||
| 
						 | 
					52bfc1725f | ||
| 
						 | 
					0a33d1739e | 
@ -12,6 +12,14 @@ Be cautious of copycat or coat-tailing sites that exploit the project's populari
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
 | 
					- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## 2024-08-19
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Changed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- **CommaFeed LXC** [(Commit)](https://github.com/tteck/Proxmox/commit/0a33d1739ec3a49011411929bd46a260e92e99f9)
 | 
				
			||||||
 | 
					  - Refactor Code
 | 
				
			||||||
 | 
					  - Breaking Change
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 2024-08-06
 | 
					## 2024-08-06
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Changed
 | 
					### Changed
 | 
				
			||||||
 | 
				
			|||||||
@ -55,19 +55,27 @@ function default_settings() {
 | 
				
			|||||||
function update_script() {
 | 
					function update_script() {
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
if [[ ! -d /opt/commafeed ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
					if [[ ! -d /opt/commafeed ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
				
			||||||
msg_info "Stopping CommaFeed"
 | 
					RELEASE=$(curl -sL https://api.github.com/repos/Athou/commafeed/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
 | 
				
			||||||
systemctl stop commafeed
 | 
					if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
 | 
				
			||||||
msg_ok "Stopped CommaFeed"
 | 
					  msg_info "Stopping ${APP}"
 | 
				
			||||||
 | 
					  systemctl stop commafeed
 | 
				
			||||||
 | 
					  msg_ok "Stopped ${APP}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Updating CommaFeed"
 | 
					  msg_info "Updating ${APP} to ${RELEASE}"
 | 
				
			||||||
cd /opt/commafeed
 | 
					  wget -q https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip
 | 
				
			||||||
rm commafeed.jar
 | 
					  unzip -q commafeed-${RELEASE}-h2-jvm.zip
 | 
				
			||||||
wget -q https://github.com/Athou/commafeed/releases/latest/download/commafeed.jar
 | 
					  rsync -a --exclude 'data/' commafeed-${RELEASE}-h2/ /opt/commafeed/
 | 
				
			||||||
msg_ok "Updated CommaFeed"
 | 
					  rm -rf commafeed-${RELEASE}-h2  commafeed-${RELEASE}-h2-jvm.zip
 | 
				
			||||||
 | 
					  echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
				
			||||||
 | 
					  msg_ok "Updated ${APP} to ${RELEASE}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Starting CommaFeed"
 | 
					  msg_info "Starting ${APP}"
 | 
				
			||||||
systemctl start commafeed
 | 
					  systemctl start commafeed
 | 
				
			||||||
msg_ok "Update Completed Successfully"
 | 
					  msg_ok "Started ${APP}"
 | 
				
			||||||
 | 
					  msg_ok "Updated Successfully"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					  msg_ok "No update required. ${APP} is already at ${RELEASE}"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -17,6 +17,7 @@ msg_info "Installing Dependencies"
 | 
				
			|||||||
$STD apt-get install -y curl
 | 
					$STD apt-get install -y curl
 | 
				
			||||||
$STD apt-get install -y sudo
 | 
					$STD apt-get install -y sudo
 | 
				
			||||||
$STD apt-get install -y mc
 | 
					$STD apt-get install -y mc
 | 
				
			||||||
 | 
					$STD apt-get install -y rsync
 | 
				
			||||||
msg_ok "Installed Dependencies"
 | 
					msg_ok "Installed Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Azul Zulu"
 | 
					msg_info "Installing Azul Zulu"
 | 
				
			||||||
@ -27,11 +28,14 @@ $STD apt-get update
 | 
				
			|||||||
$STD apt-get -y install zulu17-jdk
 | 
					$STD apt-get -y install zulu17-jdk
 | 
				
			||||||
msg_ok "Installed Azul Zulu"
 | 
					msg_ok "Installed Azul Zulu"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing CommaFeed"
 | 
					RELEASE=$(curl -sL https://api.github.com/repos/Athou/commafeed/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
 | 
				
			||||||
mkdir /opt/commafeed && cd /opt/commafeed
 | 
					msg_info "Installing CommaFeed ${RELEASE}"
 | 
				
			||||||
wget -q https://github.com/Athou/commafeed/releases/latest/download/commafeed.jar
 | 
					mkdir /opt/commafeed
 | 
				
			||||||
wget -q https://github.com/Athou/commafeed/releases/latest/download/config.yml.example -O config.yml
 | 
					wget -q https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip
 | 
				
			||||||
msg_ok "Installed CommaFeed"
 | 
					unzip -q commafeed-${RELEASE}-h2-jvm.zip
 | 
				
			||||||
 | 
					mv commafeed-${RELEASE}-h2/* /opt/commafeed/
 | 
				
			||||||
 | 
					echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
 | 
				
			||||||
 | 
					msg_ok "Installed CommaFeed ${RELEASE}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Creating Service"
 | 
					msg_info "Creating Service"
 | 
				
			||||||
cat <<EOF >/etc/systemd/system/commafeed.service
 | 
					cat <<EOF >/etc/systemd/system/commafeed.service
 | 
				
			||||||
@ -40,7 +44,7 @@ Description=CommaFeed Service
 | 
				
			|||||||
After=network.target
 | 
					After=network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Service]
 | 
					[Service]
 | 
				
			||||||
ExecStart=/usr/bin/java -Djava.net.preferIPv4Stack=true -jar /opt/commafeed/commafeed.jar server /opt/commafeed/config.yml
 | 
					ExecStart=java -jar quarkus-run.jar
 | 
				
			||||||
WorkingDirectory=/opt/commafeed/
 | 
					WorkingDirectory=/opt/commafeed/
 | 
				
			||||||
Restart=always
 | 
					Restart=always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -54,7 +58,7 @@ motd_ssh
 | 
				
			|||||||
customize
 | 
					customize
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Cleaning up"
 | 
					msg_info "Cleaning up"
 | 
				
			||||||
rm -rf zulu-repo_1.0.0-3_all.deb
 | 
					rm -rf commafeed-${RELEASE}-h2  commafeed-${RELEASE}-h2-jvm.zip  zulu-repo_1.0.0-3_all.deb
 | 
				
			||||||
$STD apt-get -y autoremove
 | 
					$STD apt-get -y autoremove
 | 
				
			||||||
$STD apt-get -y autoclean
 | 
					$STD apt-get -y autoclean
 | 
				
			||||||
msg_ok "Cleaned"
 | 
					msg_ok "Cleaned"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user