Files
ProxmoxVE/install/commafeed-install.sh

47 lines
1022 B
Bash
Raw Permalink Normal View History

2024-01-04 12:08:47 -05:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2024-01-04 12:08:47 -05:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.commafeed.com/#/welcome
2024-01-04 12:08:47 -05:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-01-04 12:08:47 -05:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y rsync
2024-01-04 12:08:47 -05:00
msg_ok "Installed Dependencies"
2025-07-09 14:22:41 +02:00
JAVA_VERSION="17" setup_java
fetch_and_deploy_gh_release "commafeed" "Athou/commafeed" "prebuild" "latest" "/opt/commafeed" "commafeed-*-h2-jvm.zip"
2024-01-04 12:08:47 -05:00
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/commafeed.service
[Unit]
Description=CommaFeed Service
After=network.target
[Service]
ExecStart=java -jar quarkus-run.jar
2024-01-04 12:08:47 -05:00
WorkingDirectory=/opt/commafeed/
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now commafeed
2024-01-04 12:08:47 -05:00
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
2024-06-02 08:00:22 -04:00
$STD apt-get -y autoremove
$STD apt-get -y autoclean
2024-01-04 12:08:47 -05:00
msg_ok "Cleaned"