From 4171b1f9dc0a08c714dfd676ca2604b76c037e4c Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sat, 1 Nov 2025 22:50:54 +0200 Subject: [PATCH 01/15] Add Donetick app script --- ct/Donetick.sh | 74 ++++++++++++++++++++++++++++++ frontend/public/json/Donetick.json | 36 +++++++++++++++ install/Donetick-install.sh | 60 ++++++++++++++++++++++++ misc/build.func | 6 +-- misc/install.func | 2 +- 5 files changed, 174 insertions(+), 4 deletions(-) create mode 100644 ct/Donetick.sh create mode 100644 frontend/public/json/Donetick.json create mode 100644 install/Donetick-install.sh diff --git a/ct/Donetick.sh b/ct/Donetick.sh new file mode 100644 index 000000000..f009786c3 --- /dev/null +++ b/ct/Donetick.sh @@ -0,0 +1,74 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: fstof +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/donetick/donetick + +# App Default Values +APP="Donetick" +var_tags="${var_tags:-productivity;tasks}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + # Check if installation is present | -f for file, -d for folder + if [[ ! -f /opt/donetick ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + # Crawling the new version and checking whether an update is required + RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') + if [[ "${RELEASE}" != "$(cat /opt/donetick/donetick_version.txt)" ]] || [[ ! -f /opt/donetick/donetick_version.txt ]]; then + # Stopping Services + msg_info "Stopping $APP" + systemctl stop donetick + msg_ok "Stopped $APP" + + # Execute Update + msg_info "Updating $APP to ${RELEASE}" + curl -fsSL "https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz" | tar -xz -C . + mv donetick "/opt/donetick/donetick" + msg_ok "Updated $APP to ${RELEASE}" + + # Starting Services + msg_info "Starting $APP" + systemctl start donetick + msg_ok "Started $APP" + + # Cleaning up + msg_info "Cleaning Up" + rm -rf config + msg_ok "Cleanup Completed" + + # Last Action + echo "${RELEASE}" > /opt/donetick/donetick_version.txt + msg_ok "Update Successful" + else + msg_ok "No update required. ${APP} is already at ${RELEASE}" + fi + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:2021${CL}" diff --git a/frontend/public/json/Donetick.json b/frontend/public/json/Donetick.json new file mode 100644 index 000000000..030fc2438 --- /dev/null +++ b/frontend/public/json/Donetick.json @@ -0,0 +1,36 @@ +{ + "name": "Donetick", + "slug": "donetick", + "categories": [ + 0, + 12 + ], + "date_created": "2025-11-01", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 2021, + "documentation": null, + "config_path": "", + "website": "https://donetick.com", + "logo": "https://donetick.com/assets/logo-inhNxF6J.svg", + "description": "The smart task manager that keeps individuals and families organized with intelligent scheduling and fair task distribution", + "install_methods": [ + { + "type": "default", + "script": "ct/Donetick.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 8, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] +} diff --git a/install/Donetick-install.sh b/install/Donetick-install.sh new file mode 100644 index 000000000..b8a9d8c39 --- /dev/null +++ b/install/Donetick-install.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: fstof +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/donetick/donetick + +# Import Functions und Setup +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +# Installing Dependencies +msg_info "Installing Dependencies" +$STD apt install -y \ + ca-certificates \ + libc6-compat +msg_ok "Installed Dependencies" + +msg_info "Setup Donetick" +RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') + +mkdir -p /opt/donetick +cd /opt/donetick +curl -fsSL "https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz" | tar -xz -C . + +echo "${RELEASE}" > /opt/donetick/donetick_version.txt +msg_ok "Setup Donetick" + +# Creating Service (if needed) +msg_info "Creating Service" +cat </etc/systemd/system/donetick.service +[Unit] +Description=Donetick Service +After=network.target + +[Service] +Environment="DT_ENV=selfhosted" +WorkingDirectory=/opt/donetick +ExecStart=/opt/donetick/donetick +Restart=always + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now donetick +msg_ok "Created Service" + +motd_ssh +customize + +# Cleanup +msg_info "Cleaning up" +$STD apt -y autoremove +$STD apt -y autoclean +msg_ok "Cleaned" diff --git a/misc/build.func b/misc/build.func index eb2183872..797f2b405 100644 --- a/misc/build.func +++ b/misc/build.func @@ -48,7 +48,7 @@ variables() { # FUNC_DIR="/usr/local/community-scripts/core" # mkdir -p "$FUNC_DIR" -# BUILD_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func" +# BUILD_URL="https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/build.func" # BUILD_REV="$FUNC_DIR/build.rev" # DEVMODE="${DEVMODE:-no}" @@ -73,7 +73,7 @@ variables() { # update_func_file() { # local file="$1" -# local url="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/$file" +# local url="https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/$file" # local local_path="$FUNC_DIR/$file" # echo "⬇️ Downloading $file ..." @@ -2488,7 +2488,7 @@ EOF' install_ssh_keys_into_ct # Run application installer - if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/${var_install}.sh)"; then + if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/install/${var_install}.sh)"; then exit $? fi } diff --git a/misc/install.func b/misc/install.func index f741b921d..f3b805a8d 100644 --- a/misc/install.func +++ b/misc/install.func @@ -32,7 +32,7 @@ verb_ip6() { # # This function handles errors # error_handler() { -# source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/api.func) +# source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/api.func) # local exit_code="$1" # local line_number="$2" # local command="${3:-}" From 044bd6be71c83a82f9333193e99293465764d538 Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sat, 1 Nov 2025 23:57:31 +0200 Subject: [PATCH 02/15] replace config token --- ct/Donetick.sh | 10 ++++++++-- install/Donetick-install.sh | 9 ++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ct/Donetick.sh b/ct/Donetick.sh index f009786c3..ca77b286e 100644 --- a/ct/Donetick.sh +++ b/ct/Donetick.sh @@ -41,8 +41,14 @@ function update_script() { # Execute Update msg_info "Updating $APP to ${RELEASE}" - curl -fsSL "https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz" | tar -xz -C . - mv donetick "/opt/donetick/donetick" + + cd /opt/donetick + + wget -q https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz + tar -xf donetick_Linux_x86_64.tar.gz + + rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz + msg_ok "Updated $APP to ${RELEASE}" # Starting Services diff --git a/install/Donetick-install.sh b/install/Donetick-install.sh index b8a9d8c39..ceb6ee638 100644 --- a/install/Donetick-install.sh +++ b/install/Donetick-install.sh @@ -26,7 +26,12 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/lat mkdir -p /opt/donetick cd /opt/donetick -curl -fsSL "https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz" | tar -xz -C . + +wget -q https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz +tar -xf donetick_Linux_x86_64.tar.gz + +TOKEN=$(openssl rand -hex 16) +sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml echo "${RELEASE}" > /opt/donetick/donetick_version.txt msg_ok "Setup Donetick" @@ -55,6 +60,8 @@ customize # Cleanup msg_info "Cleaning up" +rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz $STD apt -y autoremove $STD apt -y autoclean msg_ok "Cleaned" + From 2edfd31eebeae436dc5c5789817217c39348b783 Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:03:56 +0200 Subject: [PATCH 03/15] rename files --- ct/{Donetick.sh => donetickx.sh} | 2 +- frontend/public/json/{Donetick.json => donetickx.json} | 2 +- install/{Donetick-install.sh => donetickx-install.sh} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename ct/{Donetick.sh => donetickx.sh} (99%) rename frontend/public/json/{Donetick.json => donetickx.json} (95%) rename install/{Donetick-install.sh => donetickx-install.sh} (95%) diff --git a/ct/Donetick.sh b/ct/donetickx.sh similarity index 99% rename from ct/Donetick.sh rename to ct/donetickx.sh index ca77b286e..92067ecf3 100644 --- a/ct/Donetick.sh +++ b/ct/donetickx.sh @@ -6,7 +6,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/head # Source: https://github.com/donetick/donetick # App Default Values -APP="Donetick" +APP="donetick" var_tags="${var_tags:-productivity;tasks}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" diff --git a/frontend/public/json/Donetick.json b/frontend/public/json/donetickx.json similarity index 95% rename from frontend/public/json/Donetick.json rename to frontend/public/json/donetickx.json index 030fc2438..f0d2aab84 100644 --- a/frontend/public/json/Donetick.json +++ b/frontend/public/json/donetickx.json @@ -18,7 +18,7 @@ "install_methods": [ { "type": "default", - "script": "ct/Donetick.sh", + "script": "ct/donetick.sh", "resources": { "cpu": 2, "ram": 2048, diff --git a/install/Donetick-install.sh b/install/donetickx-install.sh similarity index 95% rename from install/Donetick-install.sh rename to install/donetickx-install.sh index ceb6ee638..5962c21ae 100644 --- a/install/Donetick-install.sh +++ b/install/donetickx-install.sh @@ -21,7 +21,7 @@ $STD apt install -y \ libc6-compat msg_ok "Installed Dependencies" -msg_info "Setup Donetick" +msg_info "Setup donetick" RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/donetick @@ -34,13 +34,13 @@ TOKEN=$(openssl rand -hex 16) sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml echo "${RELEASE}" > /opt/donetick/donetick_version.txt -msg_ok "Setup Donetick" +msg_ok "Setup donetick" # Creating Service (if needed) msg_info "Creating Service" cat </etc/systemd/system/donetick.service [Unit] -Description=Donetick Service +Description=donetick Service After=network.target [Service] From 739f25086cad089e95710a5c0e8af100754cd93a Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:04:30 +0200 Subject: [PATCH 04/15] rename files --- ct/{donetickx.sh => donetick.sh} | 0 frontend/public/json/{donetickx.json => donetick.json} | 0 install/{donetickx-install.sh => donetick-install.sh} | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename ct/{donetickx.sh => donetick.sh} (100%) rename frontend/public/json/{donetickx.json => donetick.json} (100%) rename install/{donetickx-install.sh => donetick-install.sh} (100%) diff --git a/ct/donetickx.sh b/ct/donetick.sh similarity index 100% rename from ct/donetickx.sh rename to ct/donetick.sh diff --git a/frontend/public/json/donetickx.json b/frontend/public/json/donetick.json similarity index 100% rename from frontend/public/json/donetickx.json rename to frontend/public/json/donetick.json diff --git a/install/donetickx-install.sh b/install/donetick-install.sh similarity index 100% rename from install/donetickx-install.sh rename to install/donetick-install.sh From e1cef5e6cd43ea01b2e2bbce88e1a4d24b12be57 Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:09:01 +0200 Subject: [PATCH 05/15] remove apt dependencies --- install/donetick-install.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/install/donetick-install.sh b/install/donetick-install.sh index 5962c21ae..628b944ff 100644 --- a/install/donetick-install.sh +++ b/install/donetick-install.sh @@ -14,14 +14,7 @@ setting_up_container network_check update_os -# Installing Dependencies -msg_info "Installing Dependencies" -$STD apt install -y \ - ca-certificates \ - libc6-compat -msg_ok "Installed Dependencies" - -msg_info "Setup donetick" +msg_info "Install donetick" RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/donetick @@ -34,9 +27,8 @@ TOKEN=$(openssl rand -hex 16) sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml echo "${RELEASE}" > /opt/donetick/donetick_version.txt -msg_ok "Setup donetick" +msg_ok "Install donetick" -# Creating Service (if needed) msg_info "Creating Service" cat </etc/systemd/system/donetick.service [Unit] @@ -61,7 +53,5 @@ customize # Cleanup msg_info "Cleaning up" rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz -$STD apt -y autoremove -$STD apt -y autoclean msg_ok "Cleaned" From f6c2697457e44c43c4f84672b4abf3b20165ffbc Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:18:44 +0200 Subject: [PATCH 06/15] use apt-get --- install/donetick-install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install/donetick-install.sh b/install/donetick-install.sh index 628b944ff..41de9e3e6 100644 --- a/install/donetick-install.sh +++ b/install/donetick-install.sh @@ -14,7 +14,12 @@ setting_up_container network_check update_os -msg_info "Install donetick" +# Installing Dependencies +msg_info "Installing Dependencies" +$STD apt-get install -y ca-certificates libc6-compat +msg_ok "Installed Dependencies" + +msg_info "Setup donetick" RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') mkdir -p /opt/donetick @@ -27,8 +32,9 @@ TOKEN=$(openssl rand -hex 16) sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml echo "${RELEASE}" > /opt/donetick/donetick_version.txt -msg_ok "Install donetick" +msg_ok "Setup donetick" +# Creating Service (if needed) msg_info "Creating Service" cat </etc/systemd/system/donetick.service [Unit] @@ -53,5 +59,7 @@ customize # Cleanup msg_info "Cleaning up" rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz +$STD apt-get -y autoremove +$STD apt-get -y autoclean msg_ok "Cleaned" From 67927b2a891002e98832ec12fbd84bc7a487519e Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:23:04 +0200 Subject: [PATCH 07/15] remove broken package --- install/donetick-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/donetick-install.sh b/install/donetick-install.sh index 41de9e3e6..d9cd2dffc 100644 --- a/install/donetick-install.sh +++ b/install/donetick-install.sh @@ -16,7 +16,7 @@ update_os # Installing Dependencies msg_info "Installing Dependencies" -$STD apt-get install -y ca-certificates libc6-compat +$STD apt-get install -y ca-certificates msg_ok "Installed Dependencies" msg_info "Setup donetick" From 86028cc6405561072d0861acb157402bb7970eea Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 09:41:02 +0200 Subject: [PATCH 08/15] Remove comments --- ct/donetick.sh | 14 ++------------ install/donetick-install.sh | 4 ---- tools/addon/glances.sh | 4 ++-- tools/pve/update-apps.sh | 4 ++-- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/ct/donetick.sh b/ct/donetick.sh index 92067ecf3..01643334a 100644 --- a/ct/donetick.sh +++ b/ct/donetick.sh @@ -5,7 +5,6 @@ source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/head # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/donetick/donetick -# App Default Values APP="donetick" var_tags="${var_tags:-productivity;tasks}" var_cpu="${var_cpu:-2}" @@ -25,43 +24,34 @@ function update_script() { check_container_storage check_container_resources - # Check if installation is present | -f for file, -d for folder if [[ ! -f /opt/donetick ]]; then msg_error "No ${APP} Installation Found!" exit fi - # Crawling the new version and checking whether an update is required RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') if [[ "${RELEASE}" != "$(cat /opt/donetick/donetick_version.txt)" ]] || [[ ! -f /opt/donetick/donetick_version.txt ]]; then - # Stopping Services msg_info "Stopping $APP" systemctl stop donetick msg_ok "Stopped $APP" - # Execute Update msg_info "Updating $APP to ${RELEASE}" - cd /opt/donetick - wget -q https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz tar -xf donetick_Linux_x86_64.tar.gz - - rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz + mv donetick /opt/donetick/donetick msg_ok "Updated $APP to ${RELEASE}" - # Starting Services msg_info "Starting $APP" systemctl start donetick msg_ok "Started $APP" - # Cleaning up msg_info "Cleaning Up" + rm -rf donetick_Linux_x86_64.tar.gz rm -rf config msg_ok "Cleanup Completed" - # Last Action echo "${RELEASE}" > /opt/donetick/donetick_version.txt msg_ok "Update Successful" else diff --git a/install/donetick-install.sh b/install/donetick-install.sh index d9cd2dffc..192120392 100644 --- a/install/donetick-install.sh +++ b/install/donetick-install.sh @@ -5,7 +5,6 @@ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/donetick/donetick -# Import Functions und Setup source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 @@ -14,7 +13,6 @@ setting_up_container network_check update_os -# Installing Dependencies msg_info "Installing Dependencies" $STD apt-get install -y ca-certificates msg_ok "Installed Dependencies" @@ -34,7 +32,6 @@ sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g echo "${RELEASE}" > /opt/donetick/donetick_version.txt msg_ok "Setup donetick" -# Creating Service (if needed) msg_info "Creating Service" cat </etc/systemd/system/donetick.service [Unit] @@ -56,7 +53,6 @@ msg_ok "Created Service" motd_ssh customize -# Cleanup msg_info "Cleaning up" rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz $STD apt-get -y autoremove diff --git a/tools/addon/glances.sh b/tools/addon/glances.sh index 0f1b76f11..3cf0d6ab3 100644 --- a/tools/addon/glances.sh +++ b/tools/addon/glances.sh @@ -48,7 +48,7 @@ install_glances_debian() { msg_ok "Installed dependencies" msg_info "Setting up Python + uv" - source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func) + source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/misc/tools.func) setup_uv PYTHON_VERSION="3.12" msg_ok "Setup Python + uv" @@ -118,7 +118,7 @@ install_glances_alpine() { msg_ok "Installed dependencies" msg_info "Setting up Python + uv" - source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func) + source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/misc/tools.func) setup_uv PYTHON_VERSION="3.12" msg_ok "Setup Python + uv" diff --git a/tools/pve/update-apps.sh b/tools/pve/update-apps.sh index f07e5c03d..c69af1e08 100644 --- a/tools/pve/update-apps.sh +++ b/tools/pve/update-apps.sh @@ -4,7 +4,7 @@ # Author: BvdBerg01 | Co-Author: remz1337 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/refs/heads/main/misc/core.func) +source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/core.func) function header_info { clear @@ -168,7 +168,7 @@ for container in $CHOICE; do fi #2) Extract service build/update resource requirements from config/installation file - script=$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${service}.sh) + script=$(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/ct/${service}.sh) #2.1) Check if the script downloaded successfully if [ $? -ne 0 ]; then From 0cd72e9f390ad0ae58e999ad029033a083bab13f Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 09:51:36 +0200 Subject: [PATCH 09/15] Remove files not needed for PR --- ct/donetick.sh | 2 +- misc/build.func | 6 +- misc/install.func | 2 +- tools/addon/glances.sh | 202 +++++++++++++++++++++++++++++++++++++++ tools/pve/update-apps.sh | 8 +- 5 files changed, 211 insertions(+), 9 deletions(-) diff --git a/ct/donetick.sh b/ct/donetick.sh index 01643334a..111da67fb 100644 --- a/ct/donetick.sh +++ b/ct/donetick.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: fstof # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE diff --git a/misc/build.func b/misc/build.func index 797f2b405..eb2183872 100644 --- a/misc/build.func +++ b/misc/build.func @@ -48,7 +48,7 @@ variables() { # FUNC_DIR="/usr/local/community-scripts/core" # mkdir -p "$FUNC_DIR" -# BUILD_URL="https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/build.func" +# BUILD_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func" # BUILD_REV="$FUNC_DIR/build.rev" # DEVMODE="${DEVMODE:-no}" @@ -73,7 +73,7 @@ variables() { # update_func_file() { # local file="$1" -# local url="https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/$file" +# local url="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/$file" # local local_path="$FUNC_DIR/$file" # echo "⬇️ Downloading $file ..." @@ -2488,7 +2488,7 @@ EOF' install_ssh_keys_into_ct # Run application installer - if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/install/${var_install}.sh)"; then + if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/${var_install}.sh)"; then exit $? fi } diff --git a/misc/install.func b/misc/install.func index f3b805a8d..f741b921d 100644 --- a/misc/install.func +++ b/misc/install.func @@ -32,7 +32,7 @@ verb_ip6() { # # This function handles errors # error_handler() { -# source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/api.func) +# source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/api.func) # local exit_code="$1" # local line_number="$2" # local command="${3:-}" diff --git a/tools/addon/glances.sh b/tools/addon/glances.sh index 3cf0d6ab3..d3c7b03dd 100644 --- a/tools/addon/glances.sh +++ b/tools/addon/glances.sh @@ -4,6 +4,14 @@ # Author: tteck (tteckster) | MickLesk (CanbiZ) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +function header_info { + clear + cat <<"EOF"#!/usr/bin/env bash + +# Copyright (c) 2021-2025 tteck +# Author: tteck (tteckster) | MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE + function header_info { clear cat <<"EOF" @@ -41,6 +49,200 @@ get_local_ip() { } IP=$(get_local_ip) +install_glances_debian() { + msg_info "Installing dependencies" + apt-get update >/dev/null 2>&1 + apt-get install -y gcc lm-sensors wireless-tools >/dev/null 2>&1 + msg_ok "Installed dependencies" + + msg_info "Setting up Python + uv" + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func) + setup_uv PYTHON_VERSION="3.12" + msg_ok "Setup Python + uv" + + msg_info "Installing $APP (with web UI)" + cd /opt + mkdir -p glances + cd glances + uv venv + source .venv/bin/activate >/dev/null 2>&1 + uv pip install --upgrade pip wheel setuptools >/dev/null 2>&1 + uv pip install "glances[web]" >/dev/null 2>&1 + deactivate + msg_ok "Installed $APP" + + msg_info "Creating systemd service" + cat </etc/systemd/system/glances.service +[Unit] +Description=Glances - An eye on your system +After=network.target + +[Service] +Type=simple +ExecStart=/opt/glances/.venv/bin/glances -w +Restart=on-failure +WorkingDirectory=/opt/glances + +[Install] +WantedBy=multi-user.target +EOF + systemctl enable -q --now glances + msg_ok "Created systemd service" + + echo -e "\n$APP is now running at: http://$IP:61208\n" +} + +# update on Debian/Ubuntu +update_glances_debian() { + if [[ ! -d /opt/glances/.venv ]]; then + msg_error "$APP is not installed" + exit 1 + fi + msg_info "Updating $APP" + cd /opt/glances + source .venv/bin/activate + uv pip install --upgrade "glances[web]" >/dev/null 2>&1 + deactivate + systemctl restart glances + msg_ok "Updated $APP" +} + +# uninstall on Debian/Ubuntu +uninstall_glances_debian() { + msg_info "Uninstalling $APP" + systemctl disable -q --now glances || true + rm -f /etc/systemd/system/glances.service + rm -rf /opt/glances + msg_ok "Removed $APP" +} + +# install on Alpine +install_glances_alpine() { + msg_info "Installing dependencies" + apk update >/dev/null 2>&1 + $STD apk add --no-cache \ + gcc musl-dev linux-headers python3-dev \ + python3 py3-pip py3-virtualenv lm-sensors wireless-tools >/dev/null 2>&1 + msg_ok "Installed dependencies" + + msg_info "Setting up Python + uv" + source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/tools.func) + setup_uv PYTHON_VERSION="3.12" + msg_ok "Setup Python + uv" + + msg_info "Installing $APP (with web UI)" + cd /opt + mkdir -p glances + cd glances + uv venv + source .venv/bin/activate + uv pip install --upgrade pip wheel setuptools >/dev/null 2>&1 + uv pip install "glances[web]" >/dev/null 2>&1 + deactivate + msg_ok "Installed $APP" + + msg_info "Creating OpenRC service" + cat <<'EOF' >/etc/init.d/glances +#!/sbin/openrc-run +command="/opt/glances/.venv/bin/glances" +command_args="-w" +command_background="yes" +pidfile="/run/glances.pid" +name="glances" +description="Glances monitoring tool" +EOF + chmod +x /etc/init.d/glances + rc-update add glances default + rc-service glances start + msg_ok "Created OpenRC service" + + echo -e "\n$APP is now running at: http://$IP:61208\n" +} + +# update on Alpine +update_glances_alpine() { + if [[ ! -d /opt/glances/.venv ]]; then + msg_error "$APP is not installed" + exit 1 + fi + msg_info "Updating $APP" + cd /opt/glances + source .venv/bin/activate + uv pip install --upgrade "glances[web]" >/dev/null 2>&1 + deactivate + rc-service glances restart + msg_ok "Updated $APP" +} + +# uninstall on Alpine +uninstall_glances_alpine() { + msg_info "Uninstalling $APP" + rc-service glances stop || true + rc-update del glances || true + rm -f /etc/init.d/glances + rm -rf /opt/glances + msg_ok "Removed $APP" +} + +# options menu +OPTIONS=(Install "Install $APP" + Update "Update $APP" + Uninstall "Uninstall $APP") + +CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "$APP" --menu "Select an option:" 12 58 3 \ + "${OPTIONS[@]}" 3>&1 1>&2 2>&3 || true) + +# OS detection +if grep -qi "alpine" /etc/os-release; then + case "$CHOICE" in + Install) install_glances_alpine ;; + Update) update_glances_alpine ;; + Uninstall) uninstall_glances_alpine ;; + *) exit 0 ;; + esac +else + case "$CHOICE" in + Install) install_glances_debian ;; + Update) update_glances_debian ;; + Uninstall) uninstall_glances_debian ;; + *) exit 0 ;; + esac +fi + + ________ + / ____/ /___ _____ ________ _____ + / / __/ / __ `/ __ \/ ___/ _ \/ ___/ +/ /_/ / / /_/ / / / / /__/ __(__ ) +\____/_/\__,_/_/ /_/\___/\___/____/ + +EOF +} + +APP="Glances" +YW=$(echo "\033[33m") +GN=$(echo "\033[1;92m") +RD=$(echo "\033[01;31m") +BL=$(echo "\033[36m") +CL=$(echo "\033[m") +CM="${GN}✔️${CL}" +CROSS="${RD}✖️${CL}" +INFO="${BL}ℹ️${CL}" + +function msg_info() { echo -e "${INFO} ${YW}$1...${CL}"; } +function msg_ok() { echo -e "${CM} ${GN}$1${CL}"; } +function msg_error() { echo -e "${CROSS} ${RD}$1${CL}"; } + +get_local_ip() { + if command -v hostname >/dev/null 2>&1 && hostname -I 2>/dev/null; then + hostname -I | awk '{print $1}' + elif command -v ip >/dev/null 2>&1; then + ip -4 addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1 + else + echo "127.0.0.1" + fi +} +IP=$(get_local_ip) + install_glances_debian() { msg_info "Installing dependencies" apt-get update >/dev/null 2>&1 diff --git a/tools/pve/update-apps.sh b/tools/pve/update-apps.sh index c69af1e08..787fb7aac 100644 --- a/tools/pve/update-apps.sh +++ b/tools/pve/update-apps.sh @@ -4,7 +4,7 @@ # Author: BvdBerg01 | Co-Author: remz1337 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/refs/heads/donetick/misc/core.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/refs/heads/main/misc/core.func) function header_info { clear @@ -64,7 +64,8 @@ END { } header_info -msg_info "Loading all possible LXC containers from Proxmox VE. This may take a few seconds..." +echo "Loading all possible LXC containers from Proxmox VE" +echo "This may take a few seconds..." whiptail --backtitle "Proxmox VE Helper Scripts" --title "LXC Container Update" --yesno "This will update LXC container. Proceed?" 10 58 || exit NODE=$(hostname) @@ -88,7 +89,6 @@ while read -r container; do menu_items+=("$container_id" "$formatted_line" "OFF") fi done <<<"$containers" -msg_ok "Loaded ${#menu_items[@]} containers" CHOICE=$(whiptail --title "LXC Container Update" \ --checklist "Select LXC containers to update:" 25 60 13 \ @@ -168,7 +168,7 @@ for container in $CHOICE; do fi #2) Extract service build/update resource requirements from config/installation file - script=$(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/ct/${service}.sh) + script=$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${service}.sh) #2.1) Check if the script downloaded successfully if [ $? -ne 0 ]; then From aebedc7fd8d0e5a10ed91b24d09378c7f689a313 Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 09:55:55 +0200 Subject: [PATCH 10/15] Revert more files --- tools/addon/glances.sh | 202 --------------------------------------- tools/pve/update-apps.sh | 4 +- 2 files changed, 2 insertions(+), 204 deletions(-) diff --git a/tools/addon/glances.sh b/tools/addon/glances.sh index d3c7b03dd..0f1b76f11 100644 --- a/tools/addon/glances.sh +++ b/tools/addon/glances.sh @@ -4,14 +4,6 @@ # Author: tteck (tteckster) | MickLesk (CanbiZ) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -function header_info { - clear - cat <<"EOF"#!/usr/bin/env bash - -# Copyright (c) 2021-2025 tteck -# Author: tteck (tteckster) | MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE - function header_info { clear cat <<"EOF" @@ -184,200 +176,6 @@ uninstall_glances_alpine() { msg_ok "Removed $APP" } -# options menu -OPTIONS=(Install "Install $APP" - Update "Update $APP" - Uninstall "Uninstall $APP") - -CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "$APP" --menu "Select an option:" 12 58 3 \ - "${OPTIONS[@]}" 3>&1 1>&2 2>&3 || true) - -# OS detection -if grep -qi "alpine" /etc/os-release; then - case "$CHOICE" in - Install) install_glances_alpine ;; - Update) update_glances_alpine ;; - Uninstall) uninstall_glances_alpine ;; - *) exit 0 ;; - esac -else - case "$CHOICE" in - Install) install_glances_debian ;; - Update) update_glances_debian ;; - Uninstall) uninstall_glances_debian ;; - *) exit 0 ;; - esac -fi - - ________ - / ____/ /___ _____ ________ _____ - / / __/ / __ `/ __ \/ ___/ _ \/ ___/ -/ /_/ / / /_/ / / / / /__/ __(__ ) -\____/_/\__,_/_/ /_/\___/\___/____/ - -EOF -} - -APP="Glances" -YW=$(echo "\033[33m") -GN=$(echo "\033[1;92m") -RD=$(echo "\033[01;31m") -BL=$(echo "\033[36m") -CL=$(echo "\033[m") -CM="${GN}✔️${CL}" -CROSS="${RD}✖️${CL}" -INFO="${BL}ℹ️${CL}" - -function msg_info() { echo -e "${INFO} ${YW}$1...${CL}"; } -function msg_ok() { echo -e "${CM} ${GN}$1${CL}"; } -function msg_error() { echo -e "${CROSS} ${RD}$1${CL}"; } - -get_local_ip() { - if command -v hostname >/dev/null 2>&1 && hostname -I 2>/dev/null; then - hostname -I | awk '{print $1}' - elif command -v ip >/dev/null 2>&1; then - ip -4 addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1 - else - echo "127.0.0.1" - fi -} -IP=$(get_local_ip) - -install_glances_debian() { - msg_info "Installing dependencies" - apt-get update >/dev/null 2>&1 - apt-get install -y gcc lm-sensors wireless-tools >/dev/null 2>&1 - msg_ok "Installed dependencies" - - msg_info "Setting up Python + uv" - source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/misc/tools.func) - setup_uv PYTHON_VERSION="3.12" - msg_ok "Setup Python + uv" - - msg_info "Installing $APP (with web UI)" - cd /opt - mkdir -p glances - cd glances - uv venv - source .venv/bin/activate >/dev/null 2>&1 - uv pip install --upgrade pip wheel setuptools >/dev/null 2>&1 - uv pip install "glances[web]" >/dev/null 2>&1 - deactivate - msg_ok "Installed $APP" - - msg_info "Creating systemd service" - cat </etc/systemd/system/glances.service -[Unit] -Description=Glances - An eye on your system -After=network.target - -[Service] -Type=simple -ExecStart=/opt/glances/.venv/bin/glances -w -Restart=on-failure -WorkingDirectory=/opt/glances - -[Install] -WantedBy=multi-user.target -EOF - systemctl enable -q --now glances - msg_ok "Created systemd service" - - echo -e "\n$APP is now running at: http://$IP:61208\n" -} - -# update on Debian/Ubuntu -update_glances_debian() { - if [[ ! -d /opt/glances/.venv ]]; then - msg_error "$APP is not installed" - exit 1 - fi - msg_info "Updating $APP" - cd /opt/glances - source .venv/bin/activate - uv pip install --upgrade "glances[web]" >/dev/null 2>&1 - deactivate - systemctl restart glances - msg_ok "Updated $APP" -} - -# uninstall on Debian/Ubuntu -uninstall_glances_debian() { - msg_info "Uninstalling $APP" - systemctl disable -q --now glances || true - rm -f /etc/systemd/system/glances.service - rm -rf /opt/glances - msg_ok "Removed $APP" -} - -# install on Alpine -install_glances_alpine() { - msg_info "Installing dependencies" - apk update >/dev/null 2>&1 - $STD apk add --no-cache \ - gcc musl-dev linux-headers python3-dev \ - python3 py3-pip py3-virtualenv lm-sensors wireless-tools >/dev/null 2>&1 - msg_ok "Installed dependencies" - - msg_info "Setting up Python + uv" - source <(curl -fsSL https://raw.githubusercontent.com/fstof/ProxmoxVED/donetick/misc/tools.func) - setup_uv PYTHON_VERSION="3.12" - msg_ok "Setup Python + uv" - - msg_info "Installing $APP (with web UI)" - cd /opt - mkdir -p glances - cd glances - uv venv - source .venv/bin/activate - uv pip install --upgrade pip wheel setuptools >/dev/null 2>&1 - uv pip install "glances[web]" >/dev/null 2>&1 - deactivate - msg_ok "Installed $APP" - - msg_info "Creating OpenRC service" - cat <<'EOF' >/etc/init.d/glances -#!/sbin/openrc-run -command="/opt/glances/.venv/bin/glances" -command_args="-w" -command_background="yes" -pidfile="/run/glances.pid" -name="glances" -description="Glances monitoring tool" -EOF - chmod +x /etc/init.d/glances - rc-update add glances default - rc-service glances start - msg_ok "Created OpenRC service" - - echo -e "\n$APP is now running at: http://$IP:61208\n" -} - -# update on Alpine -update_glances_alpine() { - if [[ ! -d /opt/glances/.venv ]]; then - msg_error "$APP is not installed" - exit 1 - fi - msg_info "Updating $APP" - cd /opt/glances - source .venv/bin/activate - uv pip install --upgrade "glances[web]" >/dev/null 2>&1 - deactivate - rc-service glances restart - msg_ok "Updated $APP" -} - -# uninstall on Alpine -uninstall_glances_alpine() { - msg_info "Uninstalling $APP" - rc-service glances stop || true - rc-update del glances || true - rm -f /etc/init.d/glances - rm -rf /opt/glances - msg_ok "Removed $APP" -} - # options menu OPTIONS=(Install "Install $APP" Update "Update $APP" diff --git a/tools/pve/update-apps.sh b/tools/pve/update-apps.sh index 787fb7aac..f07e5c03d 100644 --- a/tools/pve/update-apps.sh +++ b/tools/pve/update-apps.sh @@ -64,8 +64,7 @@ END { } header_info -echo "Loading all possible LXC containers from Proxmox VE" -echo "This may take a few seconds..." +msg_info "Loading all possible LXC containers from Proxmox VE. This may take a few seconds..." whiptail --backtitle "Proxmox VE Helper Scripts" --title "LXC Container Update" --yesno "This will update LXC container. Proceed?" 10 58 || exit NODE=$(hostname) @@ -89,6 +88,7 @@ while read -r container; do menu_items+=("$container_id" "$formatted_line" "OFF") fi done <<<"$containers" +msg_ok "Loaded ${#menu_items[@]} containers" CHOICE=$(whiptail --title "LXC Container Update" \ --checklist "Select LXC containers to update:" 25 60 13 \ From 4097ed96d2159b92351166691b2ddbb827a4ba48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 2 Nov 2025 09:35:08 +0100 Subject: [PATCH 11/15] Update donetick installation script for package manager --- install/donetick-install.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/install/donetick-install.sh b/install/donetick-install.sh index 192120392..2ee9da715 100644 --- a/install/donetick-install.sh +++ b/install/donetick-install.sh @@ -14,22 +14,15 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y ca-certificates +$STD apt install -y ca-certificates msg_ok "Installed Dependencies" +fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz" + msg_info "Setup donetick" -RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - -mkdir -p /opt/donetick cd /opt/donetick - -wget -q https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz -tar -xf donetick_Linux_x86_64.tar.gz - TOKEN=$(openssl rand -hex 16) sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml - -echo "${RELEASE}" > /opt/donetick/donetick_version.txt msg_ok "Setup donetick" msg_info "Creating Service" @@ -54,8 +47,8 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf /opt/donetick/donetick_Linux_x86_64.tar.gz -$STD apt-get -y autoremove -$STD apt-get -y autoclean +$STD apt -y autoremove +$STD apt -y autoclean +$STD apt -y clean msg_ok "Cleaned" From 58000ff630561eca295eaa0f805fa52070aca405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 2 Nov 2025 09:38:44 +0100 Subject: [PATCH 12/15] Update Donetick JSON configuration Updated Donetick configuration with new categories, documentation link, config path, logo, and description. Adjusted resource requirements for installation. --- frontend/public/json/donetick.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend/public/json/donetick.json b/frontend/public/json/donetick.json index f0d2aab84..6cb64737a 100644 --- a/frontend/public/json/donetick.json +++ b/frontend/public/json/donetick.json @@ -2,27 +2,26 @@ "name": "Donetick", "slug": "donetick", "categories": [ - 0, - 12 + 19 ], "date_created": "2025-11-01", "type": "ct", "updateable": true, "privileged": false, "interface_port": 2021, - "documentation": null, - "config_path": "", + "documentation": "https://docs.donetick.com/getting-started/", + "config_path": "/opt/donetick/selfhosted.yml", "website": "https://donetick.com", - "logo": "https://donetick.com/assets/logo-inhNxF6J.svg", - "description": "The smart task manager that keeps individuals and families organized with intelligent scheduling and fair task distribution", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/donetick.webp", + "description": "Donetick an open-source, user-friendly app for managing tasks and chores, featuring customizable options to help you and others stay organized", "install_methods": [ { "type": "default", "script": "ct/donetick.sh", "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, + "cpu": 1, + "ram": 512, + "hdd": 2, "os": "Debian", "version": "13" } From e528d46babb61c0100633d0e10909db3c8d571c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:11:16 +0100 Subject: [PATCH 13/15] Update donetick.sh --- ct/donetick.sh | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/ct/donetick.sh b/ct/donetick.sh index 111da67fb..f5a993bc0 100644 --- a/ct/donetick.sh +++ b/ct/donetick.sh @@ -7,9 +7,9 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV APP="donetick" var_tags="${var_tags:-productivity;tasks}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-512}" +var_disk="${var_disk:-2}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" @@ -24,38 +24,24 @@ function update_script() { check_container_storage check_container_resources - if [[ ! -f /opt/donetick ]]; then + if [[ ! -d /opt/donetick ]]; then msg_error "No ${APP} Installation Found!" exit fi - RELEASE=$(curl -fsSL https://api.github.com/repos/donetick/donetick/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [[ "${RELEASE}" != "$(cat /opt/donetick/donetick_version.txt)" ]] || [[ ! -f /opt/donetick/donetick_version.txt ]]; then - msg_info "Stopping $APP" + if check_for_gh_release "donetick" "donetick/donetick"; then + msg_info "Stopping Service" systemctl stop donetick - msg_ok "Stopped $APP" + msg_ok "Stopped Service" - msg_info "Updating $APP to ${RELEASE}" + mv /opt/donetick/config/selfhosted.yml /opt + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz" + mv /opt/selfhosted.yml /opt/donetick/config - wget -q https://github.com/donetick/donetick/releases/download/${RELEASE}/donetick_Linux_x86_64.tar.gz - tar -xf donetick_Linux_x86_64.tar.gz - mv donetick /opt/donetick/donetick - - msg_ok "Updated $APP to ${RELEASE}" - - msg_info "Starting $APP" + msg_info "Starting Service" systemctl start donetick - msg_ok "Started $APP" - - msg_info "Cleaning Up" - rm -rf donetick_Linux_x86_64.tar.gz - rm -rf config - msg_ok "Cleanup Completed" - - echo "${RELEASE}" > /opt/donetick/donetick_version.txt - msg_ok "Update Successful" - else - msg_ok "No update required. ${APP} is already at ${RELEASE}" + msg_ok "Started Service" + msg_ok "Updated Successfully!" fi exit } From 70df9a9159452a8030ea38955155a3417366e2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:11:59 +0100 Subject: [PATCH 14/15] Update source URL for build functions --- ct/donetick.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/donetick.sh b/ct/donetick.sh index f5a993bc0..0dbcfcc4f 100644 --- a/ct/donetick.sh +++ b/ct/donetick.sh @@ -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://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: fstof # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE From 4f17d0ef3779ce7fb4b764e294d1e5ba5e8d2665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:14:28 +0100 Subject: [PATCH 15/15] Move selfhosted.yml and donetick.db to new locations --- ct/donetick.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/donetick.sh b/ct/donetick.sh index 0dbcfcc4f..dc59bc895 100644 --- a/ct/donetick.sh +++ b/ct/donetick.sh @@ -34,9 +34,10 @@ function update_script() { systemctl stop donetick msg_ok "Stopped Service" - mv /opt/donetick/config/selfhosted.yml /opt + mv /opt/donetick/config/selfhosted.yml /opt/donetick/donetick.db /opt CLEAN_INSTALL=1 fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz" mv /opt/selfhosted.yml /opt/donetick/config + mv /opt/donetick.db /opt/donetick msg_info "Starting Service" systemctl start donetick