From f6c2697457e44c43c4f84672b4abf3b20165ffbc Mon Sep 17 00:00:00 2001 From: Frans Stofberg Date: Sun, 2 Nov 2025 00:18:44 +0200 Subject: [PATCH] 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"