changed odoo to v13 and postgres to v13.16 and use branch odoo-13 in paths

This commit is contained in:
Marcel Walter 2025-10-25 23:25:51 +02:00
parent 5157d79849
commit dd42247725
8 changed files with 31 additions and 27 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 # Copyright (c) 2021-2025 community-scripts ORG
# Author: MickLesk (CanbiZ) # Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
@ -36,6 +36,8 @@ function update_script() {
fi fi
RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1) RELEASE=$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)
msg_info "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/" | LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" | grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |
sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" | sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" |

View File

@ -19,9 +19,11 @@ curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/universe/l/lxml-html-clean/pyt
$STD dpkg -i /opt/python3-lxml-html-clean.deb $STD dpkg -i /opt/python3-lxml-html-clean.deb
msg_ok "Installed Dependencies" 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) RELEASE="$(curl -fsSL https://nightly.odoo.com/ | grep -oE 'href="[0-9]+\.[0-9]+/nightly"' | head -n1 | cut -d'"' -f2 | cut -d/ -f1)"
msg_info "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/" | LATEST_VERSION=$(curl -fsSL "https://nightly.odoo.com/${RELEASE}/nightly/deb/" |
grep -oP "odoo_${RELEASE}\.\d+_all\.deb" | grep -oP "odoo_${RELEASE}\.\d+_all\.deb" |
sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" | sed -E "s/odoo_(${RELEASE}\.[0-9]+)_all\.deb/\1/" |
@ -58,7 +60,7 @@ sed -i \
-e "s|^;*db_password *=.*|db_password = $DB_PASS|" \ -e "s|^;*db_password *=.*|db_password = $DB_PASS|" \
/etc/odoo/odoo.conf /etc/odoo/odoo.conf
$STD sudo -u odoo odoo -c /etc/odoo/odoo.conf -d odoo -i base --stop-after-init $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_ok "Configured Odoo"
msg_info "Restarting Odoo" msg_info "Restarting Odoo"

View File

@ -6,7 +6,7 @@
if ! command -v curl >/dev/null 2>&1; then if ! command -v curl >/dev/null 2>&1; then
apk update && apk add curl >/dev/null 2>&1 apk update && apk add curl >/dev/null 2>&1
fi fi
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
# This function enables IPv6 if it's not disabled and sets verbose mode # This function enables IPv6 if it's not disabled and sets verbose mode
@ -82,7 +82,7 @@ network_check() {
update_os() { update_os() {
msg_info "Updating Container OS" msg_info "Updating Container OS"
$STD apk -U upgrade $STD apk -U upgrade
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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" msg_ok "Updated Container OS"
} }
@ -151,7 +151,7 @@ EOF
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
echo "bash -c \"\$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 chmod +x /usr/bin/update
if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then

View File

@ -1,6 +1,6 @@
# Copyright (c) 2021-2025 community-scripts ORG # Copyright (c) 2021-2025 community-scripts ORG
# Author: michelroegl-brunner # Author: michelroegl-brunner
# License: MIT | https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/LICENSE # License: MIT | https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/LICENSE
post_to_api() { post_to_api() {

View File

@ -15,13 +15,13 @@ variables() {
CT_TYPE=${var_unprivileged:-$CT_TYPE} CT_TYPE=${var_unprivileged:-$CT_TYPE}
} }
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
elif command -v wget >/dev/null 2>&1; then elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
fi fi
# This function enables error handling in the script by setting options and defining a trap for the ERR signal. # 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. # 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() { error_handler() {
source /dev/stdin <<<$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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" printf "\e[?25h"
local exit_code="$?" local exit_code="$?"
local line_number="$1" local line_number="$1"
@ -980,7 +980,7 @@ install_script() {
header_info header_info
echo -e "${INFO}${HOLD} ${GN}Using Config File on node $PVEHOST_NAME${CL}" echo -e "${INFO}${HOLD} ${GN}Using Config File on node $PVEHOST_NAME${CL}"
METHOD="config_file" METHOD="config_file"
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 config_file
break break
;; ;;
@ -1051,7 +1051,7 @@ check_container_storage() {
} }
start() { start() {
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 if command -v pveversion >/dev/null 2>&1; then
install_script install_script
else else
@ -1112,9 +1112,9 @@ build_container() {
TEMP_DIR=$(mktemp -d) TEMP_DIR=$(mktemp -d)
pushd "$TEMP_DIR" >/dev/null pushd "$TEMP_DIR" >/dev/null
if [ "$var_os" == "alpine" ]; then if [ "$var_os" == "alpine" ]; then
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 else
export FUNCTIONS_FILE_PATH="$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 fi
export DIAGNOSTICS="$DIAGNOSTICS" export DIAGNOSTICS="$DIAGNOSTICS"
@ -1149,7 +1149,7 @@ build_container() {
$PW $PW
" "
# This executes create_lxc.sh and creates the container and .conf file # This executes create_lxc.sh and creates the container and .conf file
bash -c "$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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" LXC_CONFIG="/etc/pve/lxc/${CTID}.conf"
@ -1342,7 +1342,7 @@ EOF'
fi fi
msg_ok "Customized LXC Container" msg_ok "Customized LXC Container"
lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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. # This function sets the description of the container.
@ -1354,7 +1354,7 @@ description() {
cat <<EOF cat <<EOF
<div align='center'> <div align='center'>
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'> <a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
<img src='https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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> </a>
<h2 style='font-size: 24px; margin: 20px 0;'>${APP} LXC</h2> <h2 style='font-size: 24px; margin: 20px 0;'>${APP} LXC</h2>

View File

@ -1,5 +1,5 @@
# Copyright (c) 2021-2025 community-scripts ORG # Copyright (c) 2021-2025 community-scripts ORG
# License: MIT | https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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). # Loads core utility groups once (colors, formatting, icons, defaults).
@ -163,7 +163,7 @@ silent() {
get_header() { get_header() {
local app_name=$(echo "${APP,,}" | tr -d ' ') local app_name=$(echo "${APP,,}" | tr -d ' ')
local app_type=${APP_TYPE:-ct} local app_type=${APP_TYPE:-ct}
local header_url="https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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}" local local_header_path="/usr/local/community-scripts/headers/${app_type}/${app_name}"
mkdir -p "$(dirname "$local_header_path")" mkdir -p "$(dirname "$local_header_path")"

View File

@ -9,11 +9,11 @@
# if [ "$VERBOSE" == "yes" ]; then set -x; fi # if [ "$VERBOSE" == "yes" ]; then set -x; fi
if command -v curl >/dev/null 2>&1; then if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
#echo "(create-lxc.sh) Loaded core.func via curl" #echo "(create-lxc.sh) Loaded core.func via curl"
elif command -v wget >/dev/null 2>&1; then elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(wget -qO- https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
#echo "(create-lxc.sh) Loaded core.func via wget" #echo "(create-lxc.sh) Loaded core.func via wget"
fi fi

View File

@ -9,7 +9,7 @@ if ! command -v curl >/dev/null 2>&1; then
apt-get update >/dev/null 2>&1 apt-get update >/dev/null 2>&1
apt-get install -y curl >/dev/null 2>&1 apt-get install -y curl >/dev/null 2>&1
fi fi
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/main/misc/core.func) source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/odoo-13/misc/core.func)
load_functions load_functions
# This function enables IPv6 if it's not disabled and sets verbose mode # This function enables IPv6 if it's not disabled and sets verbose mode
verb_ip6() { verb_ip6() {
@ -29,7 +29,7 @@ catch_errors() {
# This function handles errors # This function handles errors
error_handler() { error_handler() {
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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" printf "\e[?25h"
local exit_code="$?" local exit_code="$?"
local line_number="$1" local line_number="$1"
@ -147,7 +147,7 @@ EOF
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Container OS" msg_ok "Updated Container OS"
source <(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 # 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//') systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container" msg_ok "Customized Container"
fi fi
echo "bash -c \"\$(curl -fsSL https://gitea.lan.hobbyhimmel.de/MarcelW/ProxmoxVE-CommunityScripts/raw/branch/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 chmod +x /usr/bin/update
if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then