mirror of
https://github.com/wekan/wekan.git
synced 2026-11-18 05:45:02 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa8036aa3c | ||
|
|
7556b3ed8e | ||
|
|
786c9295a9 | ||
|
|
c1cc1e3e3d | ||
|
|
158f31ad4f | ||
|
|
5e4319473e | ||
|
|
82c78ebd1e | ||
|
|
628a49d84e | ||
|
|
3c8db21d2f | ||
|
|
550f4a19cc | ||
|
|
cd2c69f5f0 | ||
|
|
cadd015d20 | ||
|
|
5aa2219541 | ||
|
|
4e77df9ff5 | ||
|
|
b40e6caa4d | ||
|
|
2a3aa981d2 | ||
|
|
653c61081a | ||
|
|
cc3b5cb8c6 | ||
|
|
df153dcc56 | ||
|
|
5878c80fa6 | ||
|
|
d04beea6f8 | ||
|
|
d160d985c9 | ||
|
|
f0a25358b4 | ||
|
|
36e1753f89 | ||
|
|
9defe9681b | ||
|
|
2bb6999656 | ||
|
|
309b488861 | ||
|
|
67192cf5c4 | ||
|
|
c84473ae43 | ||
|
|
f6328937c9 | ||
|
|
80db2517fd | ||
|
|
918bd0b6b5 | ||
|
|
e22f422615 | ||
|
|
1826f51664 | ||
|
|
e547be9ab8 | ||
|
|
89140f1fee | ||
|
|
1b57d09d0d | ||
|
|
e7d67e3ddb | ||
|
|
a4b5ac6c4e | ||
|
|
9b22f9e157 |
No files matched your search
@@ -26,6 +26,87 @@ Versions:
|
||||
- WeKan 8.00-8.06 had wrong raw database directory setting /var/snap/wekan/common/wekan and some cards were not visible,
|
||||
it was fixed at WeKan 8.07 where database directory is back to /var/snap/wekan/common and all cards are visible.
|
||||
|
||||
# v9.06 2026-05-02 WeKan ® release
|
||||
|
||||
This release adds the following updates:
|
||||
|
||||
- [Docs: Update lxc commands](https://github.com/wekan/wekan/commit/3c8db21d2f56eefe3d8b7f3228b580407a4fe89b).
|
||||
Thanks to xet7.
|
||||
- [Docs: Added firewall config for Internet access from LXD Ubuntu container at Fedora Asahi Linux Remix, because building Linux arm64 .zip bundle of WeKan](https://github.com/wekan/wekan/commit/82c78ebd1efb888940ccf64affd23400f5485755).
|
||||
Thanks to xet7.
|
||||
- [Docs: Added Manual Parallel Snap](https://github.com/wekan/wekan/commit/eb824938cb750921bec721d80eab2670ba567869).
|
||||
Thanks to xet7.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
- [Fix Snap Candidate WRITABLE_PATH directory permissions at Parallel Snap file path /var/snap/wekan_SOMENAME/common/files/](https://github.com/wekan/wekan/commit/7556b3ed8e29b9edd074c1dd8c03a9b804787523).
|
||||
Thanks to xet7.
|
||||
|
||||
Thanks to above GitHub users for their contributions and translators for their translations.
|
||||
|
||||
# v9.05 2026-05-02 WeKan ® release
|
||||
|
||||
This release adds the following updates:
|
||||
|
||||
- [Update version script and dependencies](https://github.com/wekan/wekan/commit/4e77df9ff52ef2aed44e95ad4ef58d0cde6593b7).
|
||||
Thanks to xet7.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
- Fix Snap Candidate attachments WRITABLE_PATH for Parallel Snap installs.
|
||||
[Part 1](https://github.com/wekan/wekan/commit/cadd015d20e6b677fefb040ab8c5b1a3e972a394),
|
||||
[Part 2](https://github.com/wekan/wekan/commit/cd2c69f5f05d932074ca80ae569cc8d836770f7b).
|
||||
Thanks to xet7.
|
||||
|
||||
Thanks to above GitHub users for their contributions and translators for their translations.
|
||||
|
||||
# v9.04 2026-05-01 WeKan ® release
|
||||
|
||||
This release adds the following updates:
|
||||
|
||||
- [Upgrade to MongoDB 7.0.32. Update version script.](https://github.com/wekan/wekan/commit/653c61081a8d9306fb0b152f6a3a497c2607a1cf).
|
||||
Thanks to MongoDB developers and xet7.
|
||||
- [Upgrade to MongoDB 7.0.32 at Helm Chart](https://github.com/wekan/charts/commit/c55e9d3a130a7d259681185561b2741a64a8353e).
|
||||
Thanks to MongoDB developers.
|
||||
- [Upgrade to MongoDB 7.0.32 at Windows Bundle docs](https://github.com/wekan/wekan/commit/2a3aa981d2ba02ec87981e3af843811e31328fea).
|
||||
Thanks to MongoDB developers.
|
||||
|
||||
and fixes the following bugs:
|
||||
|
||||
- [Fix can not edit checklist title](https://github.com/wekan/wekan/commit/309b488861c29b4d74262f099ee11329f6d151c7).
|
||||
Thanks to xet7.
|
||||
- [Fix Cannot delete card checklist title, by removing "Delete" and "Convert to Card" that belong to Checklist Items only. Checklist Menu already has Delete Checklist](https://github.com/wekan/wekan/commit/9defe9681b8091eec3037872882d0894fbdeeb20).
|
||||
Thanks to rileybroberts and xet7.
|
||||
- [Fix: Added space between Card Number and Card Title at Minicard and Opened Card](https://github.com/wekan/wekan/commit/d04beea6f8797856806ee63df6cd30a0c6446bd5).
|
||||
Thanks to xet7.
|
||||
|
||||
Thanks to above GitHub users for their contributions and translators for their translations.
|
||||
|
||||
# v9.03 2026-04-29 WeKan ® release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
- [Add missing board‑attachments API endpoint](https://github.com/wekan/wekan/pull/6321).
|
||||
Thanks to KhaoulaMaleh.
|
||||
|
||||
and adds the following updates:
|
||||
|
||||
- Update version script.
|
||||
[Part 1](https://github.com/wekan/wekan/commit/e547be9ab81f6a880954b3e34fc3b5e3edc8efc5),
|
||||
[Part 2](https://github.com/wekan/wekan/commit/e22f4226151d54593d11ad8040cd46c39435ce5b).
|
||||
Thanks to xet7.
|
||||
|
||||
Thanks to above GitHub users for their contributions and translators for their translations.
|
||||
|
||||
# v9.02 2026-04-28 WeKan ® release
|
||||
|
||||
This release fixes the following bugs:
|
||||
|
||||
- [Fix mongodb in snap 9.01 on Ubuntu 24.04 crashes because of missing libcrypto.so.1.1](https://github.com/wekan/wekan/commit/a4b5ac6c4e2cfba6983b81ff0282e1c787576d06).
|
||||
Thanks to sbaecker.
|
||||
|
||||
Thanks to above GitHub users for their contributions and translators for their translations.
|
||||
|
||||
# v9.01 2026-04-28 WeKan ® release
|
||||
|
||||
This release adds the following updates:
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ LABEL org.opencontainers.image.source="https://github.com/wekan/wekan"
|
||||
# TARGETARCH and TARGETVARIANT are automatically provided by Docker Buildx
|
||||
ARG TARGETARCH
|
||||
ARG TARGETVARIANT
|
||||
ARG VERSION=9.01
|
||||
ARG VERSION=9.06
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV BUILD_DEPS="apt-utils gnupg wget bzip2 g++ curl libarchive-tools build-essential git ca-certificates python3 unzip"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
|
||||
appVersion: "v9.01.0"
|
||||
appVersion: "v9.06.0"
|
||||
files:
|
||||
userUploads:
|
||||
- README.md
|
||||
|
||||
@@ -66,7 +66,7 @@ template(name="cardDetails")
|
||||
+viewer
|
||||
if currentBoard.allowsCardNumber
|
||||
span.card-number
|
||||
| ##{getCardNumber}
|
||||
| ##{getCardNumber}
|
||||
= getTitle
|
||||
if isWatching
|
||||
i.card-details-watch
|
||||
|
||||
@@ -34,7 +34,7 @@ template(name="checklists")
|
||||
template(name="checklistDetail")
|
||||
.js-checklist.checklist.nodragscroll
|
||||
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
||||
+editChecklistItemForm(checklist = checklist)
|
||||
+editChecklistForm(checklist = checklist)
|
||||
else
|
||||
.checklist-title
|
||||
span
|
||||
@@ -85,6 +85,19 @@ template(name="addChecklistItemForm")
|
||||
label.toggle-label(for="toggleNewlineBecomesNewChecklistItemOriginOrder")
|
||||
| {{_ 'originOrder'}}
|
||||
|
||||
template(name="editChecklistForm")
|
||||
a.fa.fa-copy(title="{{_ 'copy-text-to-clipboard'}}")
|
||||
span.copied-tooltip {{_ 'copied'}}
|
||||
textarea.js-edit-checklist-item(rows='1' autofocus dir="auto")
|
||||
if $eq type 'item'
|
||||
= item.title
|
||||
else
|
||||
= checklist.title
|
||||
.edit-controls.clearfix
|
||||
button.primary.confirm.js-submit-edit-checklist-item-form(type="submit") {{_ 'save'}}
|
||||
a.fa.fa-times-thin.js-close-inlined-form(title="{{_ 'close-edit-checklist-item'}}")
|
||||
span(title=createdAt) {{ displayDate createdAt }}
|
||||
|
||||
template(name="editChecklistItemForm")
|
||||
a.fa.fa-copy(title="{{_ 'copy-text-to-clipboard'}}")
|
||||
span.copied-tooltip {{_ 'copied'}}
|
||||
|
||||
@@ -135,8 +135,11 @@ Template.checklists.events({
|
||||
event.preventDefault();
|
||||
const textarea = tpl.find('textarea.js-edit-checklist-item');
|
||||
const title = textarea.value.trim();
|
||||
const checklist = Template.currentData().checklist;
|
||||
checklist.setTitle(title);
|
||||
const formData = Blaze.getData(event.currentTarget) || Blaze.getData(event.target);
|
||||
const checklist = formData?.checklist;
|
||||
if (checklist) {
|
||||
checklist.setTitle(title);
|
||||
}
|
||||
},
|
||||
'submit .js-add-checklist-item'(event, tpl) {
|
||||
event.preventDefault();
|
||||
|
||||
@@ -74,7 +74,7 @@ template(name="minicard")
|
||||
+viewer
|
||||
if showCardNumber
|
||||
span.card-number
|
||||
| ##{getCardNumber}
|
||||
| ##{getCardNumber}
|
||||
= getTitle
|
||||
if showLabels
|
||||
if labels
|
||||
|
||||
@@ -104,10 +104,20 @@ sudo snap list
|
||||
```
|
||||
If not, change to candidate:
|
||||
```
|
||||
sudo snap refresh wekan_customer1 --channel=latest/candidate
|
||||
sudo snap refresh wekan_customer1 --channel=latest/candidate --amend
|
||||
```
|
||||
## Manual Parallel Snap
|
||||
|
||||
If using manual snap package, with Parallel Snap, that has name wekan_other:
|
||||
```
|
||||
sudo snap install --dangerous wekan-VERSION.snap --name wekan_other
|
||||
```
|
||||
Back to channel:
|
||||
```
|
||||
sudo snap refresh wekan_other --channel=latest/candidate --amend
|
||||
```
|
||||
If it complains about old database version (was at stable), stop it, move old files somewhere safe, and start again.
|
||||
WARNING: this deletes
|
||||
WARNING: this deletes stuff.
|
||||
```
|
||||
sudo su
|
||||
mkdir old_customer1_common
|
||||
@@ -333,16 +343,21 @@ files.company.com {
|
||||
|
||||
To server and LXC/LXD containers, install these packages:
|
||||
|
||||
Ubuntu:
|
||||
```
|
||||
sudo apt install libsquashfuse0 squashfuse fuse
|
||||
```
|
||||
|
||||
Fedora
|
||||
```
|
||||
sudo dnf install squashfuse fuse
|
||||
```
|
||||
Source: https://forum.snapcraft.io/t/system-does-not-fully-support-snapd/14767/11
|
||||
|
||||
## LXD init CIDR
|
||||
|
||||
IPv4 CIDR: 10.1.1.1/24
|
||||
|
||||
Ubuntu:
|
||||
```
|
||||
sudo apt install snapd
|
||||
|
||||
@@ -351,7 +366,28 @@ sudo reboot
|
||||
sudo snap install lxd
|
||||
|
||||
lxd init
|
||||
```
|
||||
Fedora:
|
||||
```
|
||||
sudo dnf install snapd
|
||||
|
||||
sudo reboot
|
||||
|
||||
sudo snap install lxd
|
||||
|
||||
# Any Fedora Linux or Fedora Linux Asahi Remix at Apple Silicon:
|
||||
# Internet access from LXD container:
|
||||
# 1) Allow LXD-bridge:
|
||||
sudo firewall-cmd --zone=trusted --add-interface=lxdbr0 --permanent
|
||||
sudo firewall-cmd --reload
|
||||
# 2) Allow IP Masquerading:
|
||||
sudo firewall-cmd --zone=public --add-masquerade --permanent
|
||||
sudo firewall-cmd --reload
|
||||
|
||||
lxd init
|
||||
```
|
||||
Answers for lxd init:
|
||||
```
|
||||
Would you like to use LXD clustering? (yes/no) [default=no]:
|
||||
Do you want to configure a new storage pool? (yes/no) [default=yes]:
|
||||
Name of the new storage pool [default=default]:
|
||||
@@ -418,7 +454,7 @@ Ubuntu Touch:
|
||||
```
|
||||
sudo su
|
||||
|
||||
snap install lxd --channel=5.21/stable
|
||||
snap install lxd
|
||||
```
|
||||
|
||||
3. From Ubuntu Touch Terminal, lxd init, etc.
|
||||
@@ -434,17 +470,17 @@ sudo lxc profile set default security.nesting true
|
||||
5. Start new lxc container
|
||||
|
||||
```
|
||||
# launch-ubu2504.sh
|
||||
# launch-ubu2604.sh
|
||||
# lxc launch image-name container-name
|
||||
lxc launch ubuntu:25.04 ubu2504
|
||||
lxc launch ubuntu:26.04 ubu2604
|
||||
```
|
||||
|
||||
6. Bash shell to inside of container:
|
||||
|
||||
```
|
||||
# into-ubu2504.sh
|
||||
# into-ubu2604.sh
|
||||
# lxc exec container-name -- /bin/bash
|
||||
lxc exec ubu2504 -- /bin/bash
|
||||
lxc exec ubu2604 -- /bin/bash
|
||||
```
|
||||
|
||||
## 3) Snapd and Wekan
|
||||
@@ -471,7 +507,7 @@ You can also add more lxc containers to different subdomains and proxy to them i
|
||||
|
||||
### New Ubuntu container
|
||||
```
|
||||
lxc launch images:ubuntu/20.04 lxccontainername
|
||||
lxc launch ubuntu:26.04 lxccontainername
|
||||
```
|
||||
### Inside LXC container
|
||||
```
|
||||
|
||||
@@ -10,18 +10,18 @@ This is without container (without Docker or Snap).
|
||||
|
||||
Right click and download files 1-4:
|
||||
|
||||
1. [wekan-9.01-win64.zip](https://github.com/wekan/wekan/releases/download/v9.01/wekan-9.01-win64.zip)
|
||||
1. [wekan-9.06-win64.zip](https://github.com/wekan/wekan/releases/download/v9.06/wekan-9.06-win64.zip)
|
||||
2. [node.exe](https://nodejs.org/dist/latest-v24.x/win-x64/node.exe)
|
||||
|
||||
3. [mongodb-windows-x86_64-7.0.31-signed.msi](https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.31-signed.msi)
|
||||
3. [mongodb-windows-x86_64-7.0.32-signed.msi](https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-7.0.32-signed.msi)
|
||||
|
||||
4. [start-wekan.bat](https://raw.githubusercontent.com/wekan/wekan/main/start-wekan.bat)
|
||||
|
||||
5. Copy files from steps 1-4 with USB stick or DVD to offline Windows computer
|
||||
|
||||
6. Double click `mongodb-windows-x86_64-7.0.31-signed.msi` . In installer, uncheck downloading MongoDB compass.
|
||||
6. Double click `mongodb-windows-x86_64-7.0.32-signed.msi` . In installer, uncheck downloading MongoDB compass.
|
||||
|
||||
7. Unzip `wekan-9.01-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
7. Unzip `wekan-9.06-win64.zip` , inside it is directory `bundle`, to it copy other files:
|
||||
|
||||
```
|
||||
bundle (directory)
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "wekan",
|
||||
"version": "v9.01.0",
|
||||
"version": "v9.06.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "wekan",
|
||||
"version": "v9.00.0",
|
||||
"version": "v9.05.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "^3.1019.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wekan",
|
||||
"version": "v9.01.0",
|
||||
"version": "v9.06.0",
|
||||
"description": "Open-Source kanban",
|
||||
"private": true,
|
||||
"repository": {
|
||||
|
||||
+74
-292
@@ -1,343 +1,125 @@
|
||||
|
||||
#!/bin/bash
|
||||
echo "SCRIPT TOP"
|
||||
set -x
|
||||
set +e
|
||||
# =================================================================
|
||||
# WEKAN VERSION UPDATE SCRIPT
|
||||
# Supports: Linux (Bash/Zsh) and macOS (Zsh)
|
||||
# =================================================================
|
||||
|
||||
set -e # Exit on any error
|
||||
|
||||
# Portable sedi function for macOS/Linux compatibility
|
||||
sedi() {
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
# macOS requires an empty string for the -i flag
|
||||
sed -i '' "$@"
|
||||
else
|
||||
# Linux GNU sed
|
||||
sed -i "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
# --- Version bump logic from release-all.yml ---
|
||||
|
||||
|
||||
version_bump_logic() {
|
||||
set +e
|
||||
echo "[DEBUG] Entered version_bump_logic"
|
||||
echo "[DEBUG] NEW_VERSION='$NEW_VERSION', OLD_VERSION='$OLD_VERSION'"
|
||||
echo "[DEBUG] Starting curl for Node.js v24.x..."
|
||||
set -x
|
||||
echo "--- Starting version bump logic ---"
|
||||
echo "New Version: $NEW_VERSION"
|
||||
echo "Old Version: $OLD_VERSION"
|
||||
|
||||
# 1. Fetch latest Node.js 24.x version
|
||||
echo "[DEBUG] Fetching Node.js v24.x directory listing..."
|
||||
curl -fsSL https://nodejs.org/dist/latest-v24.x/ > /tmp/nodejs24.html
|
||||
CURL_EXIT=$?
|
||||
echo "[DEBUG] curl exit code: $CURL_EXIT"
|
||||
if [ $CURL_EXIT -ne 0 ]; then
|
||||
echo "[DEBUG] curl failed to fetch Node.js directory listing!"
|
||||
echo "[DEBUG] Check your network connection or the URL."
|
||||
exit 1
|
||||
fi
|
||||
echo "[DEBUG] curl succeeded, file size: $(stat -c%s /tmp/nodejs24.html 2>/dev/null || wc -c < /tmp/nodejs24.html) bytes"
|
||||
echo "[DEBUG] First 20 lines of HTML:"
|
||||
head -20 /tmp/nodejs24.html
|
||||
echo "[DEBUG] Grep for node-v24.*-linux-x64.tar.gz (three segments):"
|
||||
grep -oE 'node-v24\.[0-9]+\.[0-9]+-linux-x64\.tar\.gz' /tmp/nodejs24.html | head -10
|
||||
FIRST_MATCH=$(grep -oE 'node-v24\.[0-9]+\.[0-9]+-linux-x64\.tar\.gz' /tmp/nodejs24.html | head -1)
|
||||
echo "[DEBUG] FIRST_MATCH='$FIRST_MATCH'"
|
||||
SED_RESULT=$(echo "$FIRST_MATCH" | sed -E 's/node-v([0-9]+)\.([0-9]+)\.([0-9]+)-linux-x64\.tar\.gz/\1.\2.\3/')
|
||||
echo "[DEBUG] SED_RESULT='$SED_RESULT'"
|
||||
NEW_NODE="$SED_RESULT"
|
||||
NEW_NODE=$(echo "$NEW_NODE" | tr -d '[:space:]')
|
||||
echo "[DEBUG] (function, after trim) NEW_NODE='$NEW_NODE'"
|
||||
echo "[DEBUG] (function, after trim) Length: ${#NEW_NODE}"
|
||||
echo "[DEBUG] (function) od -c of NEW_NODE:"
|
||||
printf '%s' "$NEW_NODE" | od -c
|
||||
NODE_HTML=$(curl -fsSL https://nodejs.org/dist/latest-v24.x/)
|
||||
FIRST_MATCH=$(echo "$NODE_HTML" | grep -oE 'node-v24\.[0-9]+\.[0-9]+-linux-x64\.tar\.gz' | head -1)
|
||||
NEW_NODE=$(echo "$FIRST_MATCH" | sed -E 's/node-v([0-9]+\.[0-9]+\.[0-9]+)-linux-x64\.tar\.gz/\1/')
|
||||
|
||||
if [[ -z "$NEW_NODE" ]]; then
|
||||
echo "[DEBUG] (function) NEW_NODE is EMPTY"
|
||||
echo "[DEBUG] (function) FIRST_MATCH was: '$FIRST_MATCH'"
|
||||
echo "[DEBUG] (function) SED_RESULT was: '$SED_RESULT'"
|
||||
echo "[DEBUG] (function) File /tmp/nodejs24.html contains:"
|
||||
head -40 /tmp/nodejs24.html
|
||||
echo "Error: could not determine latest Node.js 24.x version." >&2
|
||||
echo "Error: Could not determine latest Node.js version." >&2
|
||||
exit 1
|
||||
else
|
||||
echo "[DEBUG] (function) NEW_NODE is NOT EMPTY"
|
||||
fi
|
||||
echo "Latest Node.js detected: $NEW_NODE"
|
||||
|
||||
# expects OLD_VERSION and NEW_VERSION to be set
|
||||
# 2. Detect latest MongoDB 7.x
|
||||
# Locked to Ubuntu 22.04 and using sort -V to ensure 7.0.31 > 7.0.9
|
||||
echo "[DEBUG] Detecting latest MongoDB 7.x version for Ubuntu 22.04..."
|
||||
MONGO_LINE=$(curl -fsSL https://www.mongodb.com/try/download/community | grep -o 'mongodb-linux-x86_64-ubuntu2204-7\.[0-9]\+\.[0-9]\+\.tgz' | sort -V | tail -1)
|
||||
|
||||
# Detect latest MongoDB 7.x version and update snapcraft.yaml and Offline.md
|
||||
MONGO_LINE=$(curl -fsSL https://www.mongodb.com/try/download/community | grep -o 'mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*\.tgz' | sort -u | sort -t- -k4,4nr | head -1)
|
||||
if [ -z "$MONGO_LINE" ]; then
|
||||
echo "Error: could not determine latest MongoDB 7.x version." >&2
|
||||
echo "Error: Could not determine latest MongoDB 7.x version." >&2
|
||||
exit 1
|
||||
fi
|
||||
UBUNTU_VER=$(echo "$MONGO_LINE" | sed -E 's/.*ubuntu([0-9]+)-7\..*/\1/')
|
||||
|
||||
MONGO_VER=$(echo "$MONGO_LINE" | sed -E 's/.*-7/7/' | sed 's/\.tgz$//')
|
||||
echo "Detected latest MongoDB 7.x: $MONGO_VER for Ubuntu $UBUNTU_VER"
|
||||
# Only update MongoDB version in snapcraft.yaml and docs if detected, not with app version
|
||||
if [[ -n "$MONGO_VER" && -n "$UBUNTU_VER" ]]; then
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" snapcraft.yaml
|
||||
# All lines that start with wget or unzip or rm
|
||||
sedi -E "/(wget|unzip|rm).*wekan/s/[0-9]+\.[0-9]+(\.[0-9]+)?/$NEW_VERSION/g" snapcraft.yaml
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
fi
|
||||
UBUNTU_VER="2204"
|
||||
echo "Detected MongoDB: $MONGO_VER for Ubuntu $UBUNTU_VER"
|
||||
|
||||
# Only update mongosh and mongotools if detected (do not use app version)
|
||||
# Detect current mongosh version in snapcraft.yaml
|
||||
MONGOSH_LINE=$(grep -o 'mongosh-[0-9]\+\.[0-9]\+\.[0-9]\+-linux-x64\.tgz' snapcraft.yaml | head -1)
|
||||
if [[ -n "$MONGOSH_LINE" ]]; then
|
||||
MONGOSH_VER=$(echo "$MONGOSH_LINE" | sed -E 's/mongosh-([0-9]+\.[0-9]+\.[0-9]+)-linux-x64\.tgz/\1/')
|
||||
sedi "s|mongosh-[0-9]\+\.[0-9]\+\.[0-9]\+-linux-x64\.tgz|mongosh-${MONGOSH_VER}-linux-x64.tgz|g" snapcraft.yaml
|
||||
fi
|
||||
# Detect current mongotools version in snapcraft.yaml
|
||||
MONGOTOOLS_LINE=$(grep -o 'mongodb-database-tools-ubuntu[0-9]\+-x86_64-[0-9]\+\.[0-9]\+\.[0-9]\+\.tgz' snapcraft.yaml | head -1)
|
||||
if [[ -n "$MONGOTOOLS_LINE" ]]; then
|
||||
MONGOTOOLS_VER=$(echo "$MONGOTOOLS_LINE" | sed -E 's/mongodb-database-tools-ubuntu[0-9]+-x86_64-([0-9]+\.[0-9]+\.[0-9]+)\.tgz/\1/')
|
||||
sedi "s|mongodb-database-tools-ubuntu[0-9]\+-x86_64-[0-9]\+\.[0-9]\+\.[0-9]\+\.tgz|mongodb-database-tools-ubuntu2404-x86_64-${MONGOTOOLS_VER}.tgz|g" snapcraft.yaml
|
||||
fi
|
||||
# 3. Update Configuration Files: MongoDB & Tools
|
||||
echo "[DEBUG] Updating snapcraft.yaml and documentation..."
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" snapcraft.yaml
|
||||
|
||||
# Update Node.js version in Dockerfile and snapcraft.yaml
|
||||
echo "[DEBUG] (function) NEW_NODE='$NEW_NODE'"
|
||||
echo "[DEBUG] (function) Length: ${#NEW_NODE}"
|
||||
if [ -z "$NEW_NODE" ]; then
|
||||
echo "Error: could not determine latest Node.js 24.x version." >&2
|
||||
exit 1
|
||||
fi
|
||||
# Ensure database tools point to the correct Ubuntu version
|
||||
sedi -E "s|mongodb-database-tools-ubuntu[0-9]+-x86_64|mongodb-database-tools-ubuntu2204-x86_64|g" snapcraft.yaml
|
||||
|
||||
# 4. Update Node.js versions
|
||||
sedi "s|NODE_VERSION=v24\.[0-9][0-9]*\.[0-9][0-9]*|NODE_VERSION=v${NEW_NODE}|g" Dockerfile
|
||||
sedi "s|npm-node-version: 24\.[0-9][0-9]*\.[0-9][0-9]*|npm-node-version: ${NEW_NODE}|g" snapcraft.yaml
|
||||
sedi "s|NODE_VERSION=\"24\.[0-9][0-9]*\.[0-9][0-9]*\"|NODE_VERSION=\"${NEW_NODE}\"|g" snapcraft.yaml
|
||||
sedi "s|Node\.js 24\.[0-9][0-9]*\.[0-9][0-9]* binary|Node.js ${NEW_NODE} binary|g" snapcraft.yaml
|
||||
|
||||
# Update version numbers in release files
|
||||
OLD_NO_DOTS=$(echo "$OLD_VERSION" | tr -d '.')
|
||||
# 5. Update Application Versions
|
||||
NEW_NO_DOTS=$(echo "$NEW_VERSION" | tr -d '.')
|
||||
# Ensure package.json version is always vX.Y.Z format
|
||||
if [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||
PKG_VERSION="v${NEW_VERSION}.0"
|
||||
elif [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
PKG_VERSION="v${NEW_VERSION}"
|
||||
else
|
||||
PKG_VERSION="v${NEW_VERSION}"
|
||||
fi
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"${PKG_VERSION}\"/" package.json
|
||||
# Ensure package-lock.json version is always vX.Y.Z format
|
||||
if [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||
PKGLOCK_VERSION="v${NEW_VERSION}.0"
|
||||
elif [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
PKGLOCK_VERSION="v${NEW_VERSION}"
|
||||
else
|
||||
PKGLOCK_VERSION="v${NEW_VERSION}"
|
||||
fi
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"${PKGLOCK_VERSION}\"/" package-lock.json
|
||||
# Ensure appVersion is always vX.Y.Z format for Stackerfile.yml
|
||||
if [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||
STACKER_VERSION="v${NEW_VERSION}.0"
|
||||
elif [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
STACKER_VERSION="v${NEW_VERSION}"
|
||||
else
|
||||
STACKER_VERSION="v${NEW_VERSION}"
|
||||
fi
|
||||
sedi "0,/appVersion: \"[^\"]*\"/s/appVersion: \"[^\"]*\"/appVersion: \"${STACKER_VERSION}\"/" Stackerfile.yml
|
||||
sedi "0,/appVersion = [0-9]\+/s/appVersion = [0-9]\+/appVersion = ${NEW_NO_DOTS}/" sandstorm-pkgdef.capnp
|
||||
# Ensure sandstorm-pkgdef.capnp appMarketingVersion includes date: X.Y.Z~YYYY-MM-DD
|
||||
OLD_NO_DOTS=$(echo "$OLD_VERSION" | tr -d '.')
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
if [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
|
||||
SANDSTORM_MARKETING="${NEW_VERSION}.0~${TODAY}"
|
||||
elif [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
SANDSTORM_MARKETING="${NEW_VERSION}~${TODAY}"
|
||||
else
|
||||
SANDSTORM_MARKETING="${NEW_VERSION}~${TODAY}"
|
||||
fi
|
||||
sedi "0,/appMarketingVersion = (defaultText = \"[^\"]*\")/s/appMarketingVersion = (defaultText = \"[^\"]*\")/appMarketingVersion = (defaultText = \"${SANDSTORM_MARKETING}\")/" sandstorm-pkgdef.capnp
|
||||
# Only update the 2nd line (version) in snapcraft.yaml with the app version
|
||||
|
||||
# Standardize version to vX.Y.Z
|
||||
if [[ $NEW_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then PKG_VER="v${NEW_VERSION}.0"; else PKG_VER="v${NEW_VERSION}"; fi
|
||||
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"${PKG_VER}\"/" package.json
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"${PKG_VER}\"/" package-lock.json
|
||||
sedi "0,/appVersion: \"[^\"]*\"/s/appVersion: \"[^\"]*\"/appVersion: \"${PKG_VER}\"/" Stackerfile.yml
|
||||
sedi "2s/^version: '[^']*'/version: '${NEW_VERSION}'/" snapcraft.yaml
|
||||
sedi "s|v$OLD_VERSION/|v$NEW_VERSION/|g" snapcraft.yaml
|
||||
sedi "s|wekan-$OLD_VERSION-|wekan-$NEW_VERSION-|g" snapcraft.yaml
|
||||
|
||||
# Only update Node.js version fields in snapcraft.yaml with detected Node.js version (NEW_NODE)
|
||||
if [[ -n "$NEW_NODE" ]]; then
|
||||
sedi "s|npm-node-version: 24\.[0-9][0-9]*\.[0-9][0-9]*|npm-node-version: ${NEW_NODE}|g" snapcraft.yaml
|
||||
sedi "s|NODE_VERSION=\"24\.[0-9][0-9]*\.[0-9][0-9]*\"|NODE_VERSION=\"${NEW_NODE}\"|g" snapcraft.yaml
|
||||
sedi "s|Node\.js 24\.[0-9][0-9]*\.[0-9][0-9]* binary|Node.js ${NEW_NODE} binary|g" snapcraft.yaml
|
||||
fi
|
||||
|
||||
# Only update MongoDB download URL if a new MongoDB 7.x version is detected
|
||||
if [[ -n "$MONGO_VER" && -n "$UBUNTU_VER" ]]; then
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" snapcraft.yaml
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
fi
|
||||
|
||||
# Only update mongosh if a new version is detected
|
||||
MONGOSH_LINE=$(grep -o 'mongosh-[0-9]\+\.[0-9]\+\.[0-9]\+-linux-x64\.tgz' snapcraft.yaml | head -1)
|
||||
if [[ -n "$MONGOSH_LINE" ]]; then
|
||||
MONGOSH_VER=$(echo "$MONGOSH_LINE" | sed -E 's/mongosh-([0-9]+\.[0-9]+\.[0-9]+)-linux-x64\.tgz/\1/')
|
||||
sedi "s|mongosh-[0-9]\+\.[0-9]\+\.[0-9]\+-linux-x64\.tgz|mongosh-${MONGOSH_VER}-linux-x64.tgz|g" snapcraft.yaml
|
||||
fi
|
||||
|
||||
# Only update mongotools if a new version is detected
|
||||
MONGOTOOLS_LINE=$(grep -o 'mongodb-database-tools-ubuntu[0-9]\+-x86_64-[0-9]\+\.[0-9]\+\.[0-9]\+\.tgz' snapcraft.yaml | head -1)
|
||||
if [[ -n "$MONGOTOOLS_LINE" ]]; then
|
||||
MONGOTOOLS_VER=$(echo "$MONGOTOOLS_LINE" | sed -E 's/mongodb-database-tools-ubuntu[0-9]+-x86_64-([0-9]+\.[0-9]+\.[0-9]+)\.tgz/\1/')
|
||||
sedi "s|mongodb-database-tools-ubuntu[0-9]\+-x86_64-[0-9]\+\.[0-9]\+\.[0-9]\+\.tgz|mongodb-database-tools-ubuntu2404-x86_64-${MONGOTOOLS_VER}.tgz|g" snapcraft.yaml
|
||||
fi
|
||||
sedi "s|ARG VERSION=$OLD_VERSION|ARG VERSION=$NEW_VERSION|g" Dockerfile
|
||||
sedi "s|wekan-$OLD_VERSION-|wekan-$NEW_VERSION-|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
sedi "s|/v$OLD_VERSION/|/v$NEW_VERSION/|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
# Sandstorm Specifics
|
||||
sedi "0,/appVersion = [0-9]\+/s/appVersion = [0-9]\+/appVersion = ${NEW_NO_DOTS}/" sandstorm-pkgdef.capnp
|
||||
sedi "0,/appMarketingVersion = (defaultText = \"[^\"]*\")/s/appMarketingVersion = (defaultText = \"[^\"]*\")/appMarketingVersion = (defaultText = \"${NEW_VERSION}~${TODAY}\")/" sandstorm-pkgdef.capnp
|
||||
sedi "s|appVersion = $OLD_NO_DOTS,|appVersion = $NEW_NO_DOTS,|g" sandstorm-pkgdef.capnp
|
||||
sedi "s|\"$OLD_VERSION.0~|\"$NEW_VERSION.0~|g" sandstorm-pkgdef.capnp
|
||||
|
||||
# Update website install/index.html versions
|
||||
MONGO_LINE=$(grep -o 'mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*' snapcraft.yaml | head -1)
|
||||
if [ -n "$MONGO_LINE" ]; then
|
||||
UBUNTU_VER=$(echo "$MONGO_LINE" | sed -E 's/.*ubuntu([0-9]+)-7\..*/\1/')
|
||||
MONGODB_VERSION=$(echo "$MONGO_LINE" | sed -E 's/.*-7/7/')
|
||||
sedi "s|MongoDB 7\\.x|MongoDB $MONGODB_VERSION Ubuntu $UBUNTU_VER|g" ../w/wekan.fi/install/index.html
|
||||
# Docker and Documentation
|
||||
sedi "s|ARG VERSION=$OLD_VERSION|ARG VERSION=$NEW_VERSION|g" Dockerfile
|
||||
sedi "s|wekan-$OLD_VERSION|wekan-$NEW_VERSION|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
sedi "s|/v$OLD_VERSION/|/v$NEW_VERSION/|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
|
||||
# 6. Update Wekan website (if applicable)
|
||||
if [ -d "../w/wekan.fi" ]; then
|
||||
INSTALL_PAGE="../w/wekan.fi/install/index.html"
|
||||
METEOR_VER=$(grep -o 'METEOR@[^ "\\]*' .meteor/release | head -1 | sed 's/.*@//')
|
||||
NPM_VER=$(grep -o 'NPM_VERSION=[^ "\\]*' Dockerfile | head -1 | cut -d= -f2 | tr -d '"')
|
||||
|
||||
(cd ../w/wekan.fi && git pull)
|
||||
#sedi "s|MongoDB 7\\.x|MongoDB $MONGO_VER|g" "$INSTALL_PAGE"
|
||||
sedi "s|<span id=\"meteor-version\">[^<]*</span>|<span id=\"meteor-version\">$METEOR_VER</span>|g" "$INSTALL_PAGE"
|
||||
#sedi "s|<span id=\"node-version\">[^<]*</span>|<span id=\"node-version\">v$NEW_NODE</span>|g" "$INSTALL_PAGE"
|
||||
#sedi "s|<span id=\"npm-version\">[^<]*</span>|<span id=\"npm-version\">$NPM_VER</span>|g" "$INSTALL_PAGE"
|
||||
sedi "s|<span class=\"version-number\">v${OLD_VERSION}</span>|<span class=\"version-number\">v${NEW_VERSION}</span>|g" "$INSTALL_PAGE"
|
||||
(cd ../w/wekan.fi && git add --all && git commit -m "Updates" && git push)
|
||||
fi
|
||||
METEOR_VERSION=$(grep -o 'METEOR@[^ "\\]*' .meteor/release | head -1)
|
||||
NODE_VERSION=$(grep -o 'NODE_VERSION=[^ "\\]*' Dockerfile | head -1 | cut -d= -f2 | tr -d '"')
|
||||
NPM_VERSION=$(grep -o 'NPM_VERSION=[^ "\\]*' Dockerfile | head -1 | cut -d= -f2 | tr -d '"')
|
||||
sedi "s|<span id=\"meteor-version\">[^<]*</span>|<span id=\"meteor-version\">$METEOR_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span id=\"node-version\">[^<]*</span>|<span id=\"node-version\">$NODE_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span id=\"npm-version\">[^<]*</span>|<span id=\"npm-version\">$NPM_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span class=\"version-number\">v${OLD_VERSION}</span>|<span class=\"version-number\">v${NEW_VERSION}</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|\(Meteor \)[^,]*,|\1${METEOR_VERSION},|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|\(Node\.js \)[0-9][0-9]*\.[x0-9a-zA-Z.-]*|\1${NODE_VERSION}|g" ../w/wekan.fi/install/index.html
|
||||
|
||||
echo "--- Version bump complete ---"
|
||||
}
|
||||
|
||||
# Auto-detect versions from CHANGELOG.md if not provided as arguments
|
||||
# --- MAIN BLOCK ---
|
||||
|
||||
# If manual arguments are missing, parse CHANGELOG.md
|
||||
if [ -z "$1" ] || [ -z "$2" ]; then
|
||||
echo "No arguments. Detecting versions from CHANGELOG.md..."
|
||||
mapfile -t RELEASE_LINES < <(grep -E '^# v[0-9]+\.[0-9]+(\.[0-9]+)?[ -]+[0-9]{4}-[0-9]{2}-[0-9]{2}' CHANGELOG.md | head -2)
|
||||
NEW_VERSION=$(echo "${RELEASE_LINES[0]}" | grep -oE 'v[0-9]+\.[0-9]+(\.[0-9]+)?' | head -1 | sed 's/^v//')
|
||||
OLD_VERSION=$(echo "${RELEASE_LINES[1]}" | grep -oE 'v[0-9]+\.[0-9]+(\.[0-9]+)?' | head -1 | sed 's/^v//')
|
||||
echo "[DEBUG] After version detection: NEW_VERSION='$NEW_VERSION', OLD_VERSION='$OLD_VERSION'"
|
||||
if [ -z "$NEW_VERSION" ] || [ -z "$OLD_VERSION" ]; then
|
||||
echo "[DEBUG] Entered error block: Could not determine both latest and previous version from CHANGELOG.md" >&2
|
||||
echo "Error: Automatics detection failed." >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "[DEBUG] Passed version detection if block."
|
||||
version_bump_logic
|
||||
echo "SCRIPT END"
|
||||
exit 0
|
||||
else
|
||||
OLD_VERSION="$1"
|
||||
NEW_VERSION="$2"
|
||||
version_bump_logic
|
||||
echo "SCRIPT END"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
version_bump_logic() {
|
||||
set +e
|
||||
echo "[DEBUG] Entered version_bump_logic"
|
||||
echo "[DEBUG] NEW_VERSION='$NEW_VERSION', OLD_VERSION='$OLD_VERSION'"
|
||||
echo "[DEBUG] Starting curl for Node.js v24.x..."
|
||||
|
||||
set -x
|
||||
echo "[DEBUG] Fetching Node.js v24.x directory listing..."
|
||||
curl -fsSL https://nodejs.org/dist/latest-v24.x/ > /tmp/nodejs24.html
|
||||
CURL_EXIT=$?
|
||||
echo "[DEBUG] curl exit code: $CURL_EXIT"
|
||||
if [ $CURL_EXIT -ne 0 ]; then
|
||||
echo "[DEBUG] curl failed to fetch Node.js directory listing!"
|
||||
echo "[DEBUG] Check your network connection or the URL."
|
||||
exit 1
|
||||
fi
|
||||
echo "[DEBUG] curl succeeded, file size: $(stat -c%s /tmp/nodejs24.html 2>/dev/null || wc -c < /tmp/nodejs24.html) bytes"
|
||||
echo "[DEBUG] First 20 lines of HTML:"
|
||||
head -20 /tmp/nodejs24.html
|
||||
echo "[DEBUG] Grep for node-v24.*-linux-x64.tar.gz (three segments):"
|
||||
grep -oE 'node-v24\.[0-9]+\.[0-9]+\.[0-9]+-linux-x64\.tar\.gz' /tmp/nodejs24.html | head -10
|
||||
FIRST_MATCH=$(grep -oE 'node-v24\.[0-9]+\.[0-9]+\.[0-9]+-linux-x64\.tar\.gz' /tmp/nodejs24.html | head -1)
|
||||
echo "[DEBUG] FIRST_MATCH='$FIRST_MATCH'"
|
||||
SED_RESULT=$(echo "$FIRST_MATCH" | sed -E 's/node-v([0-9]+)\.([0-9]+)\.([0-9]+)-linux-x64\.tar\.gz/\1.\2.\3/')
|
||||
echo "[DEBUG] SED_RESULT='$SED_RESULT'"
|
||||
NEW_NODE="$SED_RESULT"
|
||||
NEW_NODE=$(echo "$NEW_NODE" | tr -d '[:space:]')
|
||||
echo "[DEBUG] (function, after trim) NEW_NODE='$NEW_NODE'"
|
||||
echo "[DEBUG] (function, after trim) Length: ${#NEW_NODE}"
|
||||
echo "[DEBUG] (function) od -c of NEW_NODE:"
|
||||
printf '%s' "$NEW_NODE" | od -c
|
||||
if [[ -z "$NEW_NODE" ]]; then
|
||||
echo "[DEBUG] (function) NEW_NODE is EMPTY"
|
||||
echo "[DEBUG] (function) FIRST_MATCH was: '$FIRST_MATCH'"
|
||||
echo "[DEBUG] (function) SED_RESULT was: '$SED_RESULT'"
|
||||
echo "[DEBUG] (function) File /tmp/nodejs24.html contains:"
|
||||
head -40 /tmp/nodejs24.html
|
||||
exit 1
|
||||
else
|
||||
echo "[DEBUG] (function) NEW_NODE is NOT EMPTY"
|
||||
fi
|
||||
|
||||
# expects OLD_VERSION and NEW_VERSION to be set
|
||||
|
||||
# Detect latest MongoDB 7.x version and update snapcraft.yaml and Offline.md
|
||||
MONGO_LINE=$(curl -fsSL https://www.mongodb.com/try/download/community | grep -o 'mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*\.tgz' | sort -u | sort -t- -k4,4nr | head -1)
|
||||
if [ -z "$MONGO_LINE" ]; then
|
||||
echo "Error: could not determine latest MongoDB 7.x version." >&2
|
||||
exit 1
|
||||
fi
|
||||
UBUNTU_VER=$(echo "$MONGO_LINE" | sed -E 's/.*ubuntu([0-9]+)-7\..*/\1/')
|
||||
MONGO_VER=$(echo "$MONGO_LINE" | sed -E 's/.*-7/7/' | sed 's/\.tgz$//')
|
||||
echo "Detected latest MongoDB 7.x: $MONGO_VER for Ubuntu $UBUNTU_VER"
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" snapcraft.yaml
|
||||
sedi "s|mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*|mongodb-linux-x86_64-ubuntu${UBUNTU_VER}-$MONGO_VER|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
|
||||
# Update Node.js version in Dockerfile and snapcraft.yaml
|
||||
echo "[DEBUG] (function) NEW_NODE='$NEW_NODE'"
|
||||
echo "[DEBUG] (function) Length: ${#NEW_NODE}"
|
||||
if [ -z "$NEW_NODE" ]; then
|
||||
exit 1
|
||||
fi
|
||||
sedi "s|NODE_VERSION=v24\.[0-9][0-9]*\.[0-9][0-9]*|NODE_VERSION=v${NEW_NODE}|g" Dockerfile
|
||||
sedi "s|npm-node-version: 24\.[0-9][0-9]*\.[0-9][0-9]*|npm-node-version: ${NEW_NODE}|g" snapcraft.yaml
|
||||
sedi "s|NODE_VERSION=\"24\.[0-9][0-9]*\.[0-9][0-9]*\"|NODE_VERSION=\"${NEW_NODE}\"|g" snapcraft.yaml
|
||||
sedi "s|Node\.js 24\.[0-9][0-9]*\.[0-9][0-9]* binary|Node.js ${NEW_NODE} binary|g" snapcraft.yaml
|
||||
|
||||
# Update version numbers in release files
|
||||
OLD_NO_DOTS=$(echo "$OLD_VERSION" | tr -d '.')
|
||||
NEW_NO_DOTS=$(echo "$NEW_VERSION" | tr -d '.')
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"v${NEW_VERSION}\"/" package.json
|
||||
sedi "0,/\"version\": \"[^\"]*\"/s//\"version\": \"v${NEW_VERSION}\"/" package-lock.json
|
||||
sedi "0,/appVersion: \"[^\"]*\"/s/appVersion: \"[^\"]*\"/appVersion: \"v${NEW_VERSION}\"/" Stackerfile.yml
|
||||
sedi "0,/appVersion = [0-9]\+/s/appVersion = [0-9]\+/appVersion = ${NEW_NO_DOTS}/" sandstorm-pkgdef.capnp
|
||||
sedi "0,/appMarketingVersion = (defaultText = \"[^\"]*\")/s/appMarketingVersion = (defaultText = \"[^\"]*\")/appMarketingVersion = (defaultText = \"${NEW_VERSION}\")/" sandstorm-pkgdef.capnp
|
||||
sedi "0,/^version: '[^']*'/s/^version: '[^']*'/version: '${NEW_VERSION}'/" snapcraft.yaml
|
||||
sedi "s|v[0-9]\+\.[0-9]\+|v${NEW_VERSION}|g" snapcraft.yaml
|
||||
sedi "s|[0-9]\+\.[0-9]\+-amd64|${NEW_VERSION}-amd64|g" snapcraft.yaml
|
||||
sedi "s|[0-9]\+\.[0-9]\+\.zip|${NEW_VERSION}.zip|g" snapcraft.yaml
|
||||
sedi "s|[0-9]\+\.[0-9]\+\.[0-9]\+-amd64|${NEW_VERSION}.0-amd64|g" snapcraft.yaml
|
||||
sedi "s|[0-9]\+\.[0-9]\+\.[0-9]\+|${NEW_VERSION}.0|g" snapcraft.yaml
|
||||
sedi "s|ARG VERSION=$OLD_VERSION|ARG VERSION=$NEW_VERSION|g" Dockerfile
|
||||
sedi "s|wekan-$OLD_VERSION-|wekan-$NEW_VERSION-|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
sedi "s|/v$OLD_VERSION/|/v$NEW_VERSION/|g" docs/Platforms/Propietary/Windows/Offline.md
|
||||
sedi "s|appVersion = $OLD_NO_DOTS,|appVersion = $NEW_NO_DOTS,|g" sandstorm-pkgdef.capnp
|
||||
sedi "s|\"$OLD_VERSION.0~|\"$NEW_VERSION.0~|g" sandstorm-pkgdef.capnp
|
||||
|
||||
# Update website install/index.html versions
|
||||
MONGO_LINE=$(grep -o 'mongodb-linux-x86_64-ubuntu[0-9]\+-7\.[0-9][0-9]*\.[0-9][0-9]*' snapcraft.yaml | head -1)
|
||||
if [ -n "$MONGO_LINE" ]; then
|
||||
UBUNTU_VER=$(echo "$MONGO_LINE" | sed -E 's/.*ubuntu([0-9]+)-7\..*/\1/')
|
||||
MONGODB_VERSION=$(echo "$MONGO_LINE" | sed -E 's/.*-7/7/')
|
||||
sedi "s|MongoDB 7\\.x|MongoDB $MONGODB_VERSION Ubuntu $UBUNTU_VER|g" ../w/wekan.fi/install/index.html
|
||||
fi
|
||||
METEOR_VERSION=$(grep -o 'METEOR@[^ "\\]*' .meteor/release | head -1)
|
||||
NODE_VERSION=$(grep -o 'NODE_VERSION=[^ "\\]*' Dockerfile | head -1 | cut -d= -f2 | tr -d '"')
|
||||
NPM_VERSION=$(grep -o 'NPM_VERSION=[^ "\\]*' Dockerfile | head -1 | cut -d= -f2 | tr -d '"')
|
||||
sedi "s|<span id=\"meteor-version\">[^<]*</span>|<span id=\"meteor-version\">$METEOR_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span id=\"node-version\">[^<]*</span>|<span id=\"node-version\">$NODE_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span id=\"npm-version\">[^<]*</span>|<span id=\"npm-version\">$NPM_VERSION</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|<span class=\"version-number\">v${OLD_VERSION}</span>|<span class=\"version-number\">v${NEW_VERSION}</span>|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|\(Meteor \)[^,]*,|\1${METEOR_VERSION},|g" ../w/wekan.fi/install/index.html
|
||||
sedi "s|\(Node\.js \)[0-9][0-9]*\.[x0-9a-zA-Z.-]*|\1${NODE_VERSION}|g" ../w/wekan.fi/install/index.html
|
||||
}
|
||||
# Removed unconditional error/exit after version detection
|
||||
exit 1
|
||||
fi
|
||||
echo " Latest Node.js 24.x: $NEW_NODE"
|
||||
# Dockerfile
|
||||
sedi "s|NODE_VERSION=v24\.[0-9][0-9]*\.[0-9][0-9]*|NODE_VERSION=v${NEW_NODE}|g" Dockerfile
|
||||
# snapcraft.yaml
|
||||
sedi "s|npm-node-version: 24\.[0-9][0-9]*\.[0-9][0-9]*|npm-node-version: ${NEW_NODE}|g" snapcraft.yaml
|
||||
sedi "s|NODE_VERSION=\"24\.[0-9][0-9]*\.[0-9][0-9]*\"|NODE_VERSION=\"${NEW_NODE}\"|g" snapcraft.yaml
|
||||
sedi "s|Node\.js 24\.[0-9][0-9]*\.[0-9][0-9]* binary|Node.js ${NEW_NODE} binary|g" snapcraft.yaml
|
||||
# .github/workflows/release-all.yml
|
||||
WORKFLOW=".github/workflows/release-all.yml"
|
||||
sedi "s|node-version: '24\.[0-9][0-9]*\.[0-9][0-9]*'|node-version: '${NEW_NODE}'|g" "$WORKFLOW"
|
||||
sedi "s|node:24\.[0-9][0-9]*\.[0-9][0-9]*-slim|node:${NEW_NODE}-slim|g" "$WORKFLOW"
|
||||
}
|
||||
|
||||
version_bump_logic
|
||||
echo "SCRIPT END"
|
||||
exit 0
|
||||
@@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
|
||||
appTitle = (defaultText = "Wekan"),
|
||||
# The name of the app as it is displayed to the user.
|
||||
|
||||
appVersion = 901,
|
||||
appVersion = 906,
|
||||
# Increment this for every release.
|
||||
|
||||
appMarketingVersion = (defaultText = "9.01.0~2026-04-28"),
|
||||
appMarketingVersion = (defaultText = "9.06~2026-05-02"),
|
||||
# Human-readable presentation of the app version.
|
||||
|
||||
minUpgradableAppVersion = 0,
|
||||
|
||||
@@ -335,6 +335,41 @@ WebApp.handlers.use('/api/attachment/upload', async (req, res, next) => {
|
||||
sendErrorResponse(res, 401, error.message);
|
||||
}
|
||||
});
|
||||
// Board attachments endpoint (legacy)
|
||||
WebApp.handlers.use('/api/boards/:boardId/attachments', async (req, res, next) => {
|
||||
if (req.method !== 'GET') {
|
||||
return next();
|
||||
}
|
||||
try {
|
||||
const userId = await authenticateApiRequest(req);
|
||||
const boardId = req.params.boardId;
|
||||
const board = await ReactiveCache.getBoard(boardId);
|
||||
if (!board || !board.isBoardMember(userId)) {
|
||||
return sendErrorResponse(res, 403, 'You do not have permission to access this board');
|
||||
}
|
||||
const query = { 'meta.boardId': boardId };
|
||||
const attachments = await ReactiveCache.getAttachments(query);
|
||||
const attachmentList = attachments.map(attachment => {
|
||||
const strategy = fileStoreStrategyFactory.getFileStrategy(attachment, 'original');
|
||||
return {
|
||||
attachmentId: attachment._id,
|
||||
fileName: attachment.name,
|
||||
fileSize: attachment.size,
|
||||
fileType: attachment.type,
|
||||
storageBackend: strategy.getStorageName(),
|
||||
boardId: attachment.meta.boardId,
|
||||
swimlaneId: attachment.meta.swimlaneId,
|
||||
listId: attachment.meta.listId,
|
||||
cardId: attachment.meta.cardId,
|
||||
createdAt: attachment.uploadedAt,
|
||||
isImage: attachment.isImage
|
||||
};
|
||||
});
|
||||
sendJsonResponse(res, 200, { success: true, attachments: attachmentList, count: attachmentList.length });
|
||||
} catch (error) {
|
||||
sendErrorResponse(res, 401, error.message);
|
||||
}
|
||||
});
|
||||
|
||||
// Copy attachment endpoint
|
||||
WebApp.handlers.use('/api/attachment/copy', async (req, res, next) => {
|
||||
|
||||
+9
-7
@@ -3,11 +3,7 @@
|
||||
# All supported keys are defined here together with descriptions and default values
|
||||
|
||||
# list of supported keys
|
||||
keys="DEBUG S3 METEOR_REACTIVITY_ORDER MONGO_LOG_DESTINATION MONGO_URL MONGO_OPLOG_URL MONGODB_BIND_UNIX_SOCKET MONGO_URL MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM MAIL_SERVICE MAIL_SERVICE_USER MAIL_SERVICE_PASSWORD ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT WITH_API RICHER_CARD_COMMENT_EDITOR CARD_OPENED_WEBHOOK_ENABLED ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS ATTACHMENTS_UPLOAD_EXTERNAL_PROGRAM ATTACHMENTS_UPLOAD_MIME_TYPES ATTACHMENTS_UPLOAD_MAX_SIZE AVATARS_UPLOAD_EXTERNAL_PROGRAM AVATARS_UPLOAD_MIME_TYPES AVATARS_UPLOAD_MAX_SIZE MAX_IMAGE_PIXEL IMAGE_COMPRESS_RATIO BIGEVENTS_PATTERN NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE NOTIFY_DUE_DAYS_BEFORE_AND_AFTER NOTIFY_DUE_AT_HOUR_OF_DAY DEFAULT_BOARD_ID EMAIL_NOTIFICATION_TIMEOUT CORS CORS_ALLOW_HEADERS CORS_EXPOSE_HEADERS MATOMO_ADDRESS MATOMO_SITE_ID MATOMO_DO_NOT_TRACK MATOMO_WITH_USERNAME METRICS_ALLOWED_IP_ADDRESSES BROWSER_POLICY_ENABLED TRUSTED_URL WEBHOOKS_ATTRIBUTES OAUTH2_ENABLED OIDC_REDIRECTION_ENABLED OAUTH2_CA_CERT OAUTH2_LOGIN_STYLE OAUTH2_CLIENT_ID OAUTH2_SECRET OAUTH2_SERVER_URL OAUTH2_AUTH_ENDPOINT OAUTH2_USERINFO_ENDPOINT OAUTH2_TOKEN_ENDPOINT OAUTH2_ID_MAP OAUTH2_USERNAME_MAP OAUTH2_FULLNAME_MAP OAUTH2_ID_TOKEN_WHITELIST_FIELDS OAUTH2_EMAIL_MAP OAUTH2_REQUEST_PERMISSIONS OAUTH2_ADFS_ENABLED OAUTH2_B2C_ENABLED LDAP_ENABLE LDAP_PORT LDAP_HOST LDAP_AD_SIMPLE_AUTH LDAP_BASEDN LDAP_LOGIN_FALLBACK LDAP_RECONNECT LDAP_TIMEOUT LDAP_IDLE_TIMEOUT LDAP_CONNECT_TIMEOUT LDAP_AUTHENTIFICATION LDAP_AUTHENTIFICATION_USERDN LDAP_AUTHENTIFICATION_PASSWORD LDAP_LOG_ENABLED LDAP_BACKGROUND_SYNC LDAP_BACKGROUND_SYNC_INTERVAL LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS LDAP_ENCRYPTION LDAP_CA_CERT LDAP_REJECT_UNAUTHORIZED LDAP_USER_AUTHENTICATION LDAP_USER_AUTHENTICATION_FIELD LDAP_USER_SEARCH_FILTER LDAP_USER_SEARCH_SCOPE LDAP_USER_SEARCH_FIELD LDAP_SEARCH_PAGE_SIZE LDAP_SEARCH_SIZE_LIMIT LDAP_GROUP_FILTER_ENABLE LDAP_GROUP_FILTER_OBJECTCLASS LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT LDAP_GROUP_FILTER_GROUP_NAME LDAP_UNIQUE_IDENTIFIER_FIELD LDAP_UTF8_NAMES_SLUGIFY LDAP_USERNAME_FIELD LDAP_FULLNAME_FIELD LDAP_MERGE_EXISTING_USERS LDAP_SYNC_USER_DATA LDAP_SYNC_USER_DATA_FIELDMAP LDAP_SYNC_GROUP_ROLES LDAP_DEFAULT_DOMAIN LDAP_EMAIL_MATCH_ENABLE LDAP_EMAIL_MATCH_REQUIRE LDAP_EMAIL_MATCH_VERIFIED LDAP_EMAIL_FIELD LDAP_SYNC_ADMIN_STATUS LDAP_SYNC_ADMIN_GROUPS HEADER_LOGIN_ID HEADER_LOGIN_FIRSTNAME HEADER_LOGIN_LASTNAME HEADER_LOGIN_EMAIL LOGOUT_WITH_TIMER LOGOUT_IN LOGOUT_ON_HOURS LOGOUT_ON_MINUTES DEFAULT_AUTHENTICATION_METHOD PASSWORD_LOGIN_ENABLED CAS_ENABLED CAS_BASE_URL CAS_LOGIN_URL CAS_VALIDATE_URL SAML_ENABLED SAML_PROVIDER SAML_ENTRYPOINT SAML_ISSUER SAML_CERT SAML_IDPSLO_REDIRECTURL SAML_PRIVATE_KEYFILE SAML_PUBLIC_CERTFILE SAML_IDENTIFIER_FORMAT SAML_LOCAL_PROFILE_MATCH_ATTRIBUTE SAML_ATTRIBUTES ORACLE_OIM_ENABLED RESULTS_PER_PAGE WAIT_SPINNER NODE_OPTIONS LDAP_AUTHENTIFICATION_PASSWORD_FILE OAUTH2_SECRET_FILE MAIL_SERVICE_PASSWORD_FILE MONGO_PASSWORD_FILE S3_SECRET_FILE"
|
||||
|
||||
DESCRIPTION_S3='AWS S3 for files. Example: {"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "eu-west-1"}}'
|
||||
DEFAULT_S3=""
|
||||
KEY_S3="s3"
|
||||
keys="DEBUG METEOR_REACTIVITY_ORDER MONGO_LOG_DESTINATION MONGO_URL MONGO_OPLOG_URL MONGODB_BIND_UNIX_SOCKET MONGODB_BIND_IP MONGODB_PORT MAIL_URL MAIL_FROM MAIL_SERVICE MAIL_SERVICE_USER MAIL_SERVICE_PASSWORD ROOT_URL PORT DISABLE_MONGODB CADDY_ENABLED CADDY_BIND_PORT WITH_API RICHER_CARD_COMMENT_EDITOR CARD_OPENED_WEBHOOK_ENABLED ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS ATTACHMENTS_UPLOAD_EXTERNAL_PROGRAM ATTACHMENTS_UPLOAD_MIME_TYPES ATTACHMENTS_UPLOAD_MAX_SIZE AVATARS_UPLOAD_EXTERNAL_PROGRAM AVATARS_UPLOAD_MIME_TYPES AVATARS_UPLOAD_MAX_SIZE MAX_IMAGE_PIXEL IMAGE_COMPRESS_RATIO BIGEVENTS_PATTERN NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE NOTIFY_DUE_DAYS_BEFORE_AND_AFTER NOTIFY_DUE_AT_HOUR_OF_DAY DEFAULT_BOARD_ID EMAIL_NOTIFICATION_TIMEOUT CORS CORS_ALLOW_HEADERS CORS_EXPOSE_HEADERS MATOMO_ADDRESS MATOMO_SITE_ID MATOMO_DO_NOT_TRACK MATOMO_WITH_USERNAME METRICS_ALLOWED_IP_ADDRESSES BROWSER_POLICY_ENABLED TRUSTED_URL WEBHOOKS_ATTRIBUTES OAUTH2_ENABLED OIDC_REDIRECTION_ENABLED OAUTH2_CA_CERT OAUTH2_LOGIN_STYLE OAUTH2_CLIENT_ID OAUTH2_SECRET OAUTH2_SERVER_URL OAUTH2_AUTH_ENDPOINT OAUTH2_USERINFO_ENDPOINT OAUTH2_TOKEN_ENDPOINT OAUTH2_ID_MAP OAUTH2_USERNAME_MAP OAUTH2_FULLNAME_MAP OAUTH2_ID_TOKEN_WHITELIST_FIELDS OAUTH2_EMAIL_MAP OAUTH2_REQUEST_PERMISSIONS OAUTH2_ADFS_ENABLED OAUTH2_B2C_ENABLED LDAP_ENABLE LDAP_PORT LDAP_HOST LDAP_AD_SIMPLE_AUTH LDAP_BASEDN LDAP_LOGIN_FALLBACK LDAP_RECONNECT LDAP_TIMEOUT LDAP_IDLE_TIMEOUT LDAP_CONNECT_TIMEOUT LDAP_AUTHENTIFICATION LDAP_AUTHENTIFICATION_USERDN LDAP_AUTHENTIFICATION_PASSWORD LDAP_LOG_ENABLED LDAP_BACKGROUND_SYNC LDAP_BACKGROUND_SYNC_INTERVAL LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS LDAP_ENCRYPTION LDAP_CA_CERT LDAP_REJECT_UNAUTHORIZED LDAP_USER_AUTHENTICATION LDAP_USER_AUTHENTICATION_FIELD LDAP_USER_SEARCH_FILTER LDAP_USER_SEARCH_SCOPE LDAP_USER_SEARCH_FIELD LDAP_SEARCH_PAGE_SIZE LDAP_SEARCH_SIZE_LIMIT LDAP_GROUP_FILTER_ENABLE LDAP_GROUP_FILTER_OBJECTCLASS LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT LDAP_GROUP_FILTER_GROUP_NAME LDAP_UNIQUE_IDENTIFIER_FIELD LDAP_UTF8_NAMES_SLUGIFY LDAP_USERNAME_FIELD LDAP_FULLNAME_FIELD LDAP_MERGE_EXISTING_USERS LDAP_SYNC_USER_DATA LDAP_SYNC_USER_DATA_FIELDMAP LDAP_SYNC_GROUP_ROLES LDAP_DEFAULT_DOMAIN LDAP_EMAIL_MATCH_ENABLE LDAP_EMAIL_MATCH_REQUIRE LDAP_EMAIL_MATCH_VERIFIED LDAP_EMAIL_FIELD LDAP_SYNC_ADMIN_STATUS LDAP_SYNC_ADMIN_GROUPS HEADER_LOGIN_ID HEADER_LOGIN_FIRSTNAME HEADER_LOGIN_LASTNAME HEADER_LOGIN_EMAIL LOGOUT_WITH_TIMER LOGOUT_IN LOGOUT_ON_HOURS LOGOUT_ON_MINUTES DEFAULT_AUTHENTICATION_METHOD PASSWORD_LOGIN_ENABLED CAS_ENABLED CAS_BASE_URL CAS_LOGIN_URL CAS_VALIDATE_URL SAML_ENABLED SAML_PROVIDER SAML_ENTRYPOINT SAML_ISSUER SAML_CERT SAML_IDPSLO_REDIRECTURL SAML_PRIVATE_KEYFILE SAML_PUBLIC_CERTFILE SAML_IDENTIFIER_FORMAT SAML_LOCAL_PROFILE_MATCH_ATTRIBUTE SAML_ATTRIBUTES ORACLE_OIM_ENABLED RESULTS_PER_PAGE WAIT_SPINNER NODE_OPTIONS LDAP_AUTHENTIFICATION_PASSWORD_FILE OAUTH2_SECRET_FILE MAIL_SERVICE_PASSWORD_FILE MONGO_PASSWORD_FILE S3 S3_SECRET_FILE"
|
||||
|
||||
#-------------------- CHANGE STREAMS --------------------
|
||||
# https://forums.meteor.com/t/meteor-3-5-beta-change-streams-performance-improvements/64461#change-streams-setup-3
|
||||
@@ -29,8 +25,10 @@ KEY_METEOR_REACTIVITY_ORDER='meteor-reactivity-order'
|
||||
#- S3='{"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "eu-west-1"}}'
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
# This is not set here, because it can be set only at config files
|
||||
# snap/hooks/install and snap/hooks/post-refresh
|
||||
#DESCRIPTION_WRITABLE_PATH="Writable path. Default: $SNAP_COMMON/files"
|
||||
#DEFAULT_WRITABLE_PATH="$SNAP_COMMON/files"
|
||||
#DEFAULT_WRITABLE_PATH=""
|
||||
#KEY_WRITABLE_PATH="writable-path"
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
@@ -59,7 +57,7 @@ DESCRIPTION_MONGO_URL="MONGO_URL. Default: ''"
|
||||
DEFAULT_MONGO_URL=""
|
||||
KEY_MONGO_URL='mongo-url'
|
||||
|
||||
DESCRIPTION_MONGO_OPLOG_URL="MongoDB Oplog URL. Default: 'mongodb://127.0.0.1:27017/local?replicaSet=rs0'"
|
||||
DESCRIPTION_MONGO_OPLOG_URL="MongoDB Oplog URL. Default: 'mongodb://127.0.0.1:mongodb-port/local?replicaSet=rs0'"
|
||||
DEFAULT_MONGO_OPLOG_URL=""
|
||||
KEY_MONGO_OPLOG_URL="mongo-oplog-url"
|
||||
|
||||
@@ -670,6 +668,10 @@ DESCRIPTION_MONGO_PASSWORD_FILE="MongoDB password file (Docker secrets). Example
|
||||
DEFAULT_MONGO_PASSWORD_FILE=""
|
||||
KEY_MONGO_PASSWORD_FILE="mongo-password-file"
|
||||
|
||||
DESCRIPTION_S3='AWS S3 for files. Example: {"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "eu-west-1"}}'
|
||||
DEFAULT_S3=""
|
||||
KEY_S3="s3"
|
||||
|
||||
DESCRIPTION_S3_SECRET_FILE="S3 secret file (Docker secrets). Example: /run/secrets/s3_secret"
|
||||
DEFAULT_S3_SECRET_FILE=""
|
||||
KEY_S3_SECRET_FILE="s3-secret-file"
|
||||
@@ -15,18 +15,21 @@ elif [ "nill" != "$MONGODB_BIND_UNIX_SOCKET" ] && [ "x" != "x$MONGODB_BIND_UNIX_
|
||||
fi
|
||||
else
|
||||
[ "x" == "x$MONGODB_BIND_IP" ] && MONGODB_BIND_IP="127.0.0.1"
|
||||
export MONGO_URL="mongodb://$MONGODB_BIND_IP:$MONGODB_PORT/wekan?tls=false"
|
||||
export MONGO_URL="mongodb://$MONGODB_BIND_IP:$MONGODB_PORT/wekan"
|
||||
if [ -z "$MONGO_OPLOG_URL" ]; then
|
||||
export MONGO_OPLOG_URL="mongodb://$MONGODB_BIND_IP:$MONGODB_PORT/local?replicaSet=rs0&tls=false"
|
||||
export MONGO_OPLOG_URL="mongodb://$MONGODB_BIND_IP:$MONGODB_PORT/local?replicaSet=rs0"
|
||||
fi
|
||||
fi
|
||||
|
||||
# If uploads directory does not exist, create it.
|
||||
# If WRITABLE_PATH is not set, use $SNAP_COMMON/files
|
||||
# Wekan will store attachments there.
|
||||
export WRITABLE_PATH=$SNAP_COMMON/files
|
||||
if [ ! -d $WRITABLE_PATH ]; then
|
||||
mkdir $WRITABLE_PATH
|
||||
if [ -z "$WRITABLE_PATH" ]; then
|
||||
export WRITABLE_PATH="$SNAP_COMMON/files"
|
||||
fi
|
||||
# Create attachments and avatars directories
|
||||
mkdir -p "$WRITABLE_PATH/attachments"
|
||||
mkdir -p "$WRITABLE_PATH/avatars"
|
||||
echo -e "Using WRITABLE_PATH: $WRITABLE_PATH"
|
||||
|
||||
echo -e "MONGO_URL=$MONGO_URL"
|
||||
APPLICATION_DIRECTORY=$SNAP
|
||||
|
||||
+6
-1
@@ -3,10 +3,15 @@
|
||||
exec >> $SNAP_DATA/hook.log 2>&1
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $0: Entering hook"
|
||||
|
||||
# coppy caddy file in place
|
||||
# copy caddy file in place
|
||||
[ ! -e $SNAP_COMMON/Caddyfile ] && cp $SNAP/Caddyfile $SNAP_COMMON/Caddyfile
|
||||
|
||||
# create run dir, we're going to use it for unix socket
|
||||
mkdir -p $SNAP_DATA/share
|
||||
mkdir -p $SNAP_DATA/shared
|
||||
|
||||
# attachments
|
||||
WRITABLE_PATH="$SNAP_COMMON/files"
|
||||
mkdir -p "$WRITABLE_PATH/attachments"
|
||||
mkdir -p "$WRITABLE_PATH/avatars"
|
||||
chmod -R 777 "$WRITABLE_PATH"
|
||||
@@ -3,10 +3,15 @@
|
||||
exec >> $SNAP_DATA/hook.log 2>&1
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') $0: Entering hook"
|
||||
|
||||
# coppy caddy file in place
|
||||
# copy caddy file in place
|
||||
[ ! -e $SNAP_COMMON/Caddyfile ] && cp $SNAP/Caddyfile $SNAP_COMMON/Caddyfile
|
||||
|
||||
# create run dir, we're going to use it for unix socket
|
||||
mkdir -p $SNAP_DATA/share
|
||||
mkdir -p $SNAP_DATA/shared
|
||||
|
||||
# attachments
|
||||
WRITABLE_PATH="$SNAP_COMMON/files"
|
||||
mkdir -p "$WRITABLE_PATH/attachments"
|
||||
mkdir -p "$WRITABLE_PATH/avatars"
|
||||
chmod -R 777 "$WRITABLE_PATH"
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
name: wekan
|
||||
version: '9.01'
|
||||
version: '9.06'
|
||||
base: core24
|
||||
summary: Open Source kanban
|
||||
description: |
|
||||
@@ -78,7 +78,7 @@ apps:
|
||||
|
||||
parts:
|
||||
mongodb:
|
||||
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-7.0.31.tgz
|
||||
source: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-7.0.32.tgz
|
||||
plugin: dump
|
||||
stage-packages:
|
||||
- libssl3
|
||||
@@ -106,7 +106,7 @@ parts:
|
||||
plugin: dump
|
||||
|
||||
mongotools:
|
||||
source: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2404-x86_64-100.16.0.tgz
|
||||
source: https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.16.0.tgz
|
||||
plugin: dump
|
||||
|
||||
|
||||
@@ -135,9 +135,9 @@ parts:
|
||||
rm -rf .build
|
||||
mkdir .build
|
||||
cd .build
|
||||
wget https://github.com/wekan/wekan/releases/download/v9.01/wekan-9.01-amd64.zip
|
||||
unzip wekan-9.01-amd64.zip
|
||||
rm wekan-9.01-amd64.zip
|
||||
wget https://github.com/wekan/wekan/releases/download/v9.06/wekan-9.06-amd64.zip
|
||||
unzip wekan-9.06-amd64.zip
|
||||
rm wekan-9.06-amd64.zip
|
||||
# Fix: bcrypt 5.0.1 (Meteor accounts-password) ships node-addon-api@3
|
||||
# which fails to compile on Node.js 24. Replace with bcrypt 6.0.0.
|
||||
BCRYPT_DIR="bundle/programs/server/npm/node_modules/meteor/accounts-password/node_modules/bcrypt"
|
||||
|
||||
Reference in new issue
Block a user