mirror of https://github.com/tteck/Proxmox.git
Update commafeed-install.sh
refactor closes https://github.com/tteck/Proxmox/issues/3551
This commit is contained in:
parent
28085bb2e7
commit
0a33d1739e
|
@ -27,11 +27,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 +43,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 +57,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…
Reference in New Issue