Files
ProxmoxVE/install/onedev-install.sh
T

39 lines
905 B
Bash
Raw Normal View History

2024-12-03 17:28:27 +02:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
2024-12-03 17:28:27 +02:00
# Author: kristocopani
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://onedev.io/
2024-12-03 17:28:27 +02:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
git \
git-lfs
2024-12-03 17:28:27 +02:00
msg_ok "Installed Dependencies"
2025-12-05 22:16:42 +01:00
JAVA_VERSION="21" setup_java
2024-12-03 17:28:27 +02:00
msg_info "Installing OneDev"
RELEASE=$(get_latest_github_release "theonedev/onedev" false)
2024-12-03 17:28:27 +02:00
cd /opt
2025-12-05 22:16:42 +01:00
curl -fsSL "https://code.onedev.io/onedev/server/~site/onedev-latest.tar.gz" -o onedev-latest.tar.gz
2024-12-03 17:28:27 +02:00
tar -xzf onedev-latest.tar.gz
mv /opt/onedev-latest /opt/onedev
$STD /opt/onedev/bin/server.sh install
systemctl start onedev
rm -rf /opt/onedev-latest.tar.gz
2025-12-05 22:16:42 +01:00
echo "${RELEASE}" >~/.onedev
2024-12-03 17:28:27 +02:00
msg_ok "Installed OneDev"
motd_ssh
customize
cleanup_lxc