Skip to content

Commit 8d997ee

Browse files
authored
Merge pull request #1069 from fstof/donetick
Donetick
2 parents d49a170 + 4f17d0e commit 8d997ee

File tree

3 files changed

+146
-0
lines changed

3 files changed

+146
-0
lines changed

ct/donetick.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/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+
mv /opt/donetick/config/selfhosted.yml /opt/donetick/donetick.db /opt
38+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "donetick" "donetick/donetick" "prebuild" "latest" "/opt/donetick" "donetick_Linux_x86_64.tar.gz"
39+
mv /opt/selfhosted.yml /opt/donetick/config
40+
mv /opt/donetick.db /opt/donetick
41+
42+
msg_info "Starting Service"
43+
systemctl start donetick
44+
msg_ok "Started Service"
45+
msg_ok "Updated Successfully!"
46+
fi
47+
exit
48+
}
49+
50+
start
51+
build_container
52+
description
53+
54+
msg_ok "Completed Successfully!\n"
55+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
56+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
57+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:2021${CL}"

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)