[FiX] port to 19

This commit is contained in:
2026-08-24 13:29:23 +02:00
parent 10f271252e
commit 5dd199d85f
2 changed files with 93 additions and 26 deletions
+48 -26
View File
@@ -1,64 +1,86 @@
#!/bin/bash #!/bin/bash
set -e # stop bij fouten
echo "" echo ""
set -e
GO_VERSION=1.22.5
echo "===================================" echo "==================================="
echo "Installeren van Go ${GO_VERSION}..." echo "Update apt..."
echo "===================================" echo "==================================="
apt update
apt-get update echo ""
apt-get -y install curl ca-certificates echo "==================================="
echo "Install dependencies..."
echo "==================================="
apt-get -y install wget tar
cd /tmp echo ""
curl -LO https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz echo "==================================="
echo "Install Go 1.24.3..."
echo "==================================="
GO_VERSION=1.26.0
wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz
rm -rf /usr/local/go sudo rm -rf /usr/local/go
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
export PATH=/usr/local/go/bin:$PATH # Go environment correct instellen
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
echo "Go version:"
go version go version
echo "" echo ""
echo "===================================" echo "==================================="
echo "Installing MailHog (prebuilt binary)..." echo "Installing MailHog..."
echo "===================================" echo "==================================="
/usr/local/go/bin/go install github.com/mailhog/MailHog@latest
# Download de officiële MailHog binary if [ -f "$HOME/go/bin/MailHog" ]; then
curl -sSL -o MailHog https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64 echo "MailHog installed successfully"
else
echo "ERROR: MailHog binary not found!"
exit 1
fi
chmod +x MailHog echo ""
mv MailHog /usr/local/bin/MailHog echo "==================================="
echo "Copy MailHog to /usr/local/bin..."
echo "MailHog binary geïnstalleerd" echo "==================================="
sudo cp "$HOME/go/bin/MailHog" /usr/local/bin/MailHog
echo "" echo ""
echo "===================================" echo "==================================="
echo "Create MailHog service..." echo "Create MailHog service..."
echo "===================================" echo "==================================="
sudo tee /etc/systemd/system/mailhog.service > /dev/null <<EOL
tee /etc/systemd/system/mailhog.service <<EOL
[Unit] [Unit]
Description=MailHog Service Description=MailHog
After=network.target After=network.target
[Service] [Service]
User=root
ExecStart=/usr/local/bin/MailHog ExecStart=/usr/local/bin/MailHog
Restart=always Restart=always
User=root Environment="PATH=/usr/local/go/bin:/usr/bin:/bin"
StandardOutput=journal
StandardError=journal
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOL EOL
echo ""
echo "==================================="
echo "Enable + start MailHog service..."
echo "==================================="
systemctl daemon-reload systemctl daemon-reload
systemctl enable mailhog systemctl enable mailhog
systemctl start mailhog systemctl start mailhog
echo "" echo ""
echo "===================================" echo "==================================="
echo "MailHog service created and started." echo "MailHog is running!"
echo "Web UI: http://localhost:8025"
echo "SMTP: localhost:1025"
echo "===================================" echo "==================================="
+45
View File
@@ -14,5 +14,50 @@
</xpath> </xpath>
</template> </template>
<!-- Banner for web layout (website Odoo) -->
<!-- MR=> Dit geeft een foutmelding als er geen website geïnstalleerd is!
<template id="testserver_banner_website" name="TOP banner test front" inherit_id="website.layout">
<xpath expr="//body" position="before">
<div>
<span style="text-align: center;color: #FFFFFF;background-color: #006CFE;position: relative;display: block;font-size: 16px;">
***** This is a test environment *****
<a href="https://www.open2bizz.tech/helpdesk" target="_blank" style="color: #000000;">
See website to report issue's.
</a>
</span>
</div>
</xpath>
</template>
-->
<!-- Replacement layout (website Odoo) -->
<template id="testserver_page_website" name="Website page front">
<t t-name="website.test-env">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<section class="s_banner parallax s_parallax_is_fixed pb96 o_colored_level pt40"
data-scroll-background-ratio="1"
data-snippet="s_banner" data-name="Banner" style="background-image: none;">
<span class="s_parallax_bg oe_img_bg o_bg_img_center"
style="background-image: url(&quot;https://hd-beamers.nl/wp-content/uploads/2014/05/Testbeeld-1280x720p_hd-ready.png&quot;); background-position: 50% 0px;"/>
<div class="o_we_bg_filter" style="background-image: linear-gradient(135deg, rgba(21, 25, 116, 0.71) 0%, rgba(226, 51, 255, 0.5) 100%);"/>
<div class="container">
<div class="row s_nb_column_fixed">
<div class="col-lg-6 jumbotron rounded o_cc o_cc1 pt32 pb32 o_colored_level" data-name="Box">
<h1><font style="font-size: 62px;" class="o_default_snippet_text">TEST</font><br/></h1>
<p class="lead o_default_snippet_text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<a class="mb-2 btn btn-primary" href="/web/login" data-bs-original-title="" title="">Login</a>
<br/>
<br/>
<a class="mb-2 btn btn-secondary" href="https://www.open2bizz.nl" data-bs-original-title="" title="">Open2Bizz</a>
</div>
</div>
</div>
</section>
</div>
</t>
</t>
</template>
</data> </data>
</odoo> </odoo>