Skip to content

Commit 5a70f49

Browse files
Donetick (#8835)
1 parent 7c94cc7 commit 5a70f49

File tree

4 files changed

+158
-0
lines changed

4 files changed

+158
-0
lines changed

ct/donetick.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: fstof
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/donetick/donetick
7+
8+
APP="Donetick"
9+
var_tags="${var_tags:-productivity;tasks}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-2}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/donetick ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
32+
if check_for_gh_release "donetick" "donetick/donetick"; then
33+
msg_info "Stopping Service"
34+
systemctl stop donetick
35+
msg_ok "Stopped Service"
36+
37+
msg_info "Backing Up Configurations"
38+
mv /opt/donetick/config/selfhosted.yml /opt/donetick/donetick.db /opt
39+
msg_ok "Backed Up Configurations"
40+
41+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz"
42+
43+
msg_info "Restoring Configurations"
44+
mv /opt/selfhosted.yml /opt/donetick/config
45+
mv /opt/donetick.db /opt/donetick
46+
msg_ok "Restored Configurations"
47+
48+
msg_info "Starting Service"
49+
systemctl start donetick
50+
msg_ok "Started Service"
51+
msg_ok "Updated successfully!"
52+
fi
53+
exit
54+
}
55+
56+
start
57+
build_container
58+
description
59+
60+
msg_ok "Completed Successfully!\n"
61+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
62+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
63+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:2021${CL}"

ct/headers/donetick

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__ __ _ __
2+
____/ /___ ____ ___ / /_(_)____/ /__
3+
/ __ / __ \/ __ \/ _ \/ __/ / ___/ //_/
4+
/ /_/ / /_/ / / / / __/ /_/ / /__/ ,<
5+
\__,_/\____/_/ /_/\___/\__/_/\___/_/|_|
6+

frontend/public/json/donetick.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Donetick",
3+
"slug": "donetick",
4+
"categories": [
5+
19
6+
],
7+
"date_created": "2025-11-01",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 2021,
12+
"documentation": "https://docs.donetick.com/getting-started/",
13+
"config_path": "/opt/donetick/selfhosted.yml",
14+
"website": "https://donetick.com",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/donetick.webp",
16+
"description": "Donetick an open-source, user-friendly app for managing tasks and chores, featuring customizable options to help you and others stay organized",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/donetick.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 512,
24+
"hdd": 2,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/donetick-install.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: fstof
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/donetick/donetick
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt install -y ca-certificates
18+
msg_ok "Installed Dependencies"
19+
20+
fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz"
21+
22+
msg_info "Setup Donetick"
23+
cd /opt/donetick
24+
TOKEN=$(openssl rand -hex 16)
25+
sed -i -e "s/change_this_to_a_secure_random_string_32_characters_long/${TOKEN}/g" config/selfhosted.yaml
26+
msg_ok "Setup Donetick"
27+
28+
msg_info "Creating Service"
29+
cat <<EOF >/etc/systemd/system/donetick.service
30+
[Unit]
31+
Description=donetick Service
32+
After=network.target
33+
34+
[Service]
35+
Environment="DT_ENV=selfhosted"
36+
WorkingDirectory=/opt/donetick
37+
ExecStart=/opt/donetick/donetick
38+
Restart=always
39+
40+
[Install]
41+
WantedBy=multi-user.target
42+
EOF
43+
systemctl enable -q --now donetick
44+
msg_ok "Created Service"
45+
46+
motd_ssh
47+
customize
48+
49+
msg_info "Cleaning up"
50+
$STD apt -y autoremove
51+
$STD apt -y autoclean
52+
$STD apt -y clean
53+
msg_ok "Cleaned"
54+

0 commit comments

Comments
 (0)