mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-19 17:45:06 +00:00
16.9.0 replaced the Tanuki wrapper; a fresh server.sh install now creates onedev.server.service, so the install failed on 'Unit onedev.service not found' (#17943). Upgraded installs keep their onedev.service, so update uses whichever unit exists.
39 lines
920 B
Bash
39 lines
920 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: kristocopani
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://onedev.io/
|
|
|
|
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
|
|
msg_ok "Installed Dependencies"
|
|
|
|
JAVA_VERSION="21" setup_java
|
|
|
|
msg_info "Installing OneDev"
|
|
RELEASE=$(get_latest_github_release "theonedev/onedev" false)
|
|
cd /opt
|
|
curl -fsSL "https://code.onedev.io/onedev/server/~sites/public/onedev-latest.tar.gz" -o onedev-latest.tar.gz
|
|
tar -xzf onedev-latest.tar.gz
|
|
mv /opt/onedev-latest /opt/onedev
|
|
$STD /opt/onedev/bin/server.sh install
|
|
systemctl start onedev.server
|
|
rm -rf /opt/onedev-latest.tar.gz
|
|
echo "${RELEASE}" >~/.onedev
|
|
msg_ok "Installed OneDev"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|