Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37ac7a2115 | ||
|
|
45bea82a94 | ||
|
|
edbd07fb14 | ||
|
|
4e345a0578 | ||
|
|
426fb0dc26 | ||
|
|
bd6594f7f5 | ||
|
|
ab26b1cf2f | ||
|
|
1e637b506f | ||
|
|
2f1afb2cd2 | ||
|
|
18308d5a44 | ||
|
|
b1602d67c6 | ||
|
|
9e316141d0 | ||
|
|
006fa8a284 | ||
|
|
dd42247725 | ||
|
|
5157d79849 |
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/build.func)
|
||||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
|
|
@ -11,7 +11,7 @@ var_disk="${var_disk:-6}"
|
|||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-12}"
|
||||
var_version="${var_version:-10}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
|
|
@ -36,6 +36,8 @@ function update_script() {
|
|||
fi
|
||||
|
||||
RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)
|
||||
msg_ok "Skipping installation of recent v$RELEASE and installing v13.0 instead"
|
||||
RELEASE="13.0"
|
||||
LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
|
||||
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |
|
||||
sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" |
|
||||
|
|
@ -48,7 +50,7 @@ function update_script() {
|
|||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Updating ${APP} to ${LATEST_VERSION}"
|
||||
curl -fsSL https://nightly.odoo.com/${RELEASE}/nightly/deb/odoo_${RELEASE}.latest_all.deb -o /opt/odoo.deb
|
||||
curl -fsSL "https://nightly.odoo.com/$RELEASE/nightly/deb/odoo_$LATEST_VERSION_all.deb" -o /opt/odoo.deb
|
||||
$STD apt install -y /opt/odoo.deb
|
||||
echo "$LATEST_VERSION" >/opt/${APP}_version.txt
|
||||
msg_ok "Updated ${APP} to ${LATEST_VERSION}"
|
||||
|
|
|
|||
|
|
@ -15,23 +15,34 @@ update_os
|
|||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y python3-lxml
|
||||
$STD apt install -y python3-ldap
|
||||
$STD apt install -y python3-xlwt
|
||||
$STD apt install -y python3-num2words
|
||||
$STD apt install -y python3-stdnum
|
||||
$STD apt install -y python3-autocommand python3-inflect python3-jaraco.context python3-jaraco.functools python3-more-itertools python3-pkg-resources python3-typeguard python3-pkg-resources
|
||||
curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/python3-lxml-html-clean_0.1.1-1_all.deb" -o /opt/python3-lxml-html-clean.deb
|
||||
$STD dpkg -i /opt/python3-lxml-html-clean.deb
|
||||
$STD apt install -y /opt/python3-lxml-html-clean.deb
|
||||
curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/v/vatnumber/python3-vatnumber_1.2-9_all.deb" -o /opt/python3-vatnumber.deb
|
||||
$STD apt install -y /opt/python3-vatnumber.deb
|
||||
curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/p/pypdf2/python3-pypdf2_2.12.1-4_all.deb" -o /opt/python3-pypdf2.deb
|
||||
$STD apt install -y /opt/python3-pypdf2.deb
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="18" setup_postgresql
|
||||
PG_VERSION="13.16" setup_postgresql
|
||||
|
||||
RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)
|
||||
msg_ok "Skipping installation of recent v$RELEASE and installing v13.0 instead"
|
||||
RELEASE="13.0"
|
||||
LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
|
||||
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |
|
||||
sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" |
|
||||
sort -V |
|
||||
tail -n1)
|
||||
|
||||
msg_info "Setup Odoo $RELEASE"
|
||||
curl -fsSL https://nightly.odoo.com/${RELEASE}/nightly/deb/odoo_${RELEASE}.latest_all.deb -o /opt/odoo.deb
|
||||
msg_info "Setup Odoo $RELEASE with $LATEST_VERSION"
|
||||
curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/odoo_${LATEST_VERSION}_all.deb" -o /opt/odoo.deb
|
||||
$STD apt install -y /opt/odoo.deb
|
||||
msg_ok "Setup Odoo $RELEASE"
|
||||
msg_ok "Setup Odoo $RELEASE with $LATEST_VERSION"
|
||||
|
||||
msg_info "Setup PostgreSQL Database"
|
||||
DB_NAME="odoo"
|
||||
|
|
@ -58,7 +69,7 @@ sed -i \
|
|||
-e "s|^;*db_password *=.*|db_password = $DB_PASS|" \
|
||||
/etc/odoo/odoo.conf
|
||||
$STD sudo -u odoo odoo -c /etc/odoo/odoo.conf -d odoo -i base --stop-after-init
|
||||
echo "${LATEST_VERSION}" >/opt/${APPLICATION}_version.txt
|
||||
echo "${LATEST_VERSION}" >/opt/"${APPLICATION}"_version.txt
|
||||
msg_ok "Configured Odoo"
|
||||
|
||||
msg_info "Restarting Odoo"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
if ! command -v curl >/dev/null 2>&1; then
|
||||
apk update && apk add curl >/dev/null 2>&1
|
||||
fi
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
|
||||
# This function enables IPv6 if it's not disabled and sets verbose mode
|
||||
|
|
@ -82,7 +82,7 @@ network_check() {
|
|||
update_os() {
|
||||
msg_info "Updating Container OS"
|
||||
$STD apk -U upgrade
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/tools.func)
|
||||
msg_ok "Updated Container OS"
|
||||
}
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ EOF
|
|||
msg_ok "Customized Container"
|
||||
fi
|
||||
|
||||
echo "bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${app}.sh)\"" >/usr/bin/update
|
||||
echo "bash -c \"\$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/ct/${app}.sh)\"" >/usr/bin/update
|
||||
chmod +x /usr/bin/update
|
||||
|
||||
if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# Author: michelroegl-brunner
|
||||
# License: MIT | https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/LICENSE
|
||||
# License: MIT | https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/LICENSE
|
||||
|
||||
post_to_api() {
|
||||
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@ variables() {
|
|||
CT_TYPE=${var_unprivileged:-$CT_TYPE}
|
||||
}
|
||||
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/api.func)
|
||||
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
fi
|
||||
# This function enables error handling in the script by setting options and defining a trap for the ERR signal.
|
||||
|
|
@ -32,7 +32,7 @@ catch_errors() {
|
|||
|
||||
# This function is called when an error occurs. It receives the exit code, line number, and command that caused the error, and displays an error message.
|
||||
error_handler() {
|
||||
source /dev/stdin <<<$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func)
|
||||
source /dev/stdin <<<$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/api.func)
|
||||
printf "\e[?25h"
|
||||
local exit_code="$?"
|
||||
local line_number="$1"
|
||||
|
|
@ -980,7 +980,7 @@ install_script() {
|
|||
header_info
|
||||
echo -e "${INFO}${HOLD} ${GN}Using Config File on node $PVEHOST_NAME${CL}"
|
||||
METHOD="config_file"
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/config-file.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/config-file.func)
|
||||
config_file
|
||||
break
|
||||
;;
|
||||
|
|
@ -1051,7 +1051,7 @@ check_container_storage() {
|
|||
}
|
||||
|
||||
start() {
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/tools.func)
|
||||
if command -v pveversion >/dev/null 2>&1; then
|
||||
install_script
|
||||
else
|
||||
|
|
@ -1112,9 +1112,9 @@ build_container() {
|
|||
TEMP_DIR=$(mktemp -d)
|
||||
pushd "$TEMP_DIR" >/dev/null
|
||||
if [ "$var_os" == "alpine" ]; then
|
||||
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/alpine-install.func)"
|
||||
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/alpine-install.func)"
|
||||
else
|
||||
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/install.func)"
|
||||
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/install.func)"
|
||||
fi
|
||||
|
||||
export DIAGNOSTICS="$DIAGNOSTICS"
|
||||
|
|
@ -1149,7 +1149,7 @@ build_container() {
|
|||
$PW
|
||||
"
|
||||
# This executes create_lxc.sh and creates the container and .conf file
|
||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/create_lxc.sh)" $?
|
||||
bash -c "$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/create_lxc.sh)" $?
|
||||
|
||||
LXC_CONFIG="/etc/pve/lxc/${CTID}.conf"
|
||||
|
||||
|
|
@ -1338,11 +1338,14 @@ EOF'
|
|||
msg_warn "Skipping timezone setup – zone '$tz' not found in container"
|
||||
fi
|
||||
|
||||
pct exec "$CTID" -- bash -c "echo deb https://archive.debian.org/debian buster main contrib >/etc/apt/sources.list"
|
||||
pct exec "$CTID" -- bash -c "echo deb https://archive.debian.org/debian buster-updates main contrib >>/etc/apt/sources.list"
|
||||
pct exec "$CTID" -- bash -c "echo deb https://archive.debian.org/debian-security buster/updates main contrib >>/etc/apt/sources.list"
|
||||
pct exec "$CTID" -- bash -c "apt-get update >/dev/null && apt-get install -y sudo curl mc gnupg2 jq >/dev/null"
|
||||
fi
|
||||
msg_ok "Customized LXC Container"
|
||||
|
||||
lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"
|
||||
lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/install/${var_install}.sh)"
|
||||
}
|
||||
|
||||
# This function sets the description of the container.
|
||||
|
|
@ -1354,7 +1357,7 @@ description() {
|
|||
cat <<EOF
|
||||
<div align='center'>
|
||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||
<img src='https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||
</a>
|
||||
|
||||
<h2 style='font-size: 24px; margin: 20px 0;'>${APP} LXC</h2>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Copyright (c) 2021-2025 community-scripts ORG
|
||||
# License: MIT | https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/LICENSE
|
||||
# License: MIT | https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/LICENSE
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Loads core utility groups once (colors, formatting, icons, defaults).
|
||||
|
|
@ -163,7 +163,7 @@ silent() {
|
|||
get_header() {
|
||||
local app_name=$(echo "${APP,,}" | tr -d ' ')
|
||||
local app_type=${APP_TYPE:-ct}
|
||||
local header_url="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/${app_type}/headers/${app_name}"
|
||||
local header_url="https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/${app_type}/headers/${app_name}"
|
||||
local local_header_path="/usr/local/community-scripts/headers/${app_type}/${app_name}"
|
||||
|
||||
mkdir -p "$(dirname "$local_header_path")"
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@
|
|||
# if [ "$VERBOSE" == "yes" ]; then set -x; fi
|
||||
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
#echo "(create-lxc.sh) Loaded core.func via curl"
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
source <(wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
#echo "(create-lxc.sh) Loaded core.func via wget"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ if ! command -v curl >/dev/null 2>&1; then
|
|||
apt-get update >/dev/null 2>&1
|
||||
apt-get install -y curl >/dev/null 2>&1
|
||||
fi
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
|
||||
load_functions
|
||||
# This function enables IPv6 if it's not disabled and sets verbose mode
|
||||
verb_ip6() {
|
||||
|
|
@ -29,7 +29,7 @@ catch_errors() {
|
|||
|
||||
# This function handles errors
|
||||
error_handler() {
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/api.func)
|
||||
printf "\e[?25h"
|
||||
local exit_code="$?"
|
||||
local line_number="$1"
|
||||
|
|
@ -147,7 +147,7 @@ EOF
|
|||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||
msg_ok "Updated Container OS"
|
||||
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/tools.func)
|
||||
}
|
||||
|
||||
# This function modifies the message of the day (motd) and SSH settings
|
||||
|
|
@ -197,7 +197,7 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
echo "bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${app}.sh)\"" >/usr/bin/update
|
||||
echo "bash -c \"\$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/ct/${app}.sh)\"" >/usr/bin/update
|
||||
chmod +x /usr/bin/update
|
||||
|
||||
if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user