diff --git a/ct/alpine-wakapi.sh b/ct/alpine-wakapi.sh deleted file mode 100644 index 4f2719577..000000000 --- a/ct/alpine-wakapi.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://wakapi.dev/ | https://github.com/muety/wakapi - -APP="Alpine-Wakapi" -var_tags="${var_tags:-code;time-tracking}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-512}" -var_disk="${var_disk:-4}" -var_os="${var_os:-alpine}" -var_version="${var_version:-3.23}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /opt/wakapi ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - RELEASE=$(curl -s https://api.github.com/repos/muety/wakapi/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [ "${RELEASE}" != "$(cat ~/.wakapi 2>/dev/null)" ] || [ ! -f ~/.wakapi ]; then - msg_info "Stopping Wakapi Service" - $STD rc-service wakapi stop - msg_ok "Stopped Wakapi Service" - - msg_info "Updating Wakapi LXC" - $STD apk -U upgrade - msg_ok "Updated Wakapi LXC" - - msg_info "Creating backup" - mkdir -p /opt/wakapi-backup - cp /opt/wakapi/config.yml /opt/wakapi/wakapi_db.db /opt/wakapi-backup/ - msg_ok "Created backup" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wakapi" "muety/wakapi" "tarball" - - msg_info "Configuring Wakapi" - cd /opt/wakapi - $STD go mod download - $STD go build -o wakapi - cp /opt/wakapi-backup/config.yml /opt/wakapi/ - cp /opt/wakapi-backup/wakapi_db.db /opt/wakapi/ - rm -rf /opt/wakapi-backup - msg_ok "Configured Wakapi" - - msg_info "Starting Service" - $STD rc-service wakapi start - msg_ok "Started Service" - msg_ok "Updated successfully" - else - msg_ok "No update required. ${APP} is already at ${RELEASE}" - fi - exit 0 -} - -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}:3000${CL}" diff --git a/install/alpine-wakapi-install.sh b/install/alpine-wakapi-install.sh deleted file mode 100644 index 3a1addc3d..000000000 --- a/install/alpine-wakapi-install.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://wakapi.dev/ | https://github.com/muety/wakapi - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apk add --no-cache \ - ca-certificates \ - tzdata -$STD update-ca-certificates -$STD apk add --no-cache go --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community -msg_ok "Installed Dependencies" - -fetch_and_deploy_gh_release "wakapi" "muety/wakapi" "tarball" - -msg_info "Configuring Wakapi" -LOCAL_IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) -cd /opt/wakapi -$STD go mod download -$STD go build -o wakapi -cp config.default.yml config.yml -sed -i 's/listen_ipv6: ::1/listen_ipv6: "-"/g' config.yml -sed -i 's/listen_ipv4: 127.0.0.1/listen_ipv4: "0.0.0.0"/g' config.yml -sed -i "s/public_url: http:\/\/localhost:3000/public_url: http:\/\/$LOCAL_IP:3000/g" config.yml -msg_ok "Configured Wakapi" - -msg_info "Enabling Wakapi Service" -cat </etc/init.d/wakapi -#!/sbin/openrc-run -description="Wakapi Service" -directory="/opt/wakapi" -command="/opt/wakapi/wakapi" -command_args="-config config.yml" -command_background="true" -command_user="root" -pidfile="/var/run/wakapi.pid" - -depend() { - use net -} -EOF -chmod +x /etc/init.d/wakapi -$STD rc-update add wakapi default -msg_ok "Enabled Wakapi Service" - -msg_info "Starting Wakapi" -$STD rc-service wakapi start -msg_ok "Started Wakapi" - -motd_ssh -customize diff --git a/json/alpine-wakapi.json b/json/alpine-wakapi.json deleted file mode 100644 index 9a90b6cd0..000000000 --- a/json/alpine-wakapi.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "Alpine-Wakapi", - "slug": "alpine-wakapi", - "categories": [ - 9 - ], - "date_created": "2026-02-16", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://github.com/muety/wakapi/wiki", - "website": "https://wakapi.dev/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/wakapi.webp", - "config_path": "/opt/wakapi/config.yml", - "description": "Wakapi is an open-source tool that helps you keep track of the time you have spent coding on different projects in different programming languages and more. Ideal for statistics freaks and anyone else.", - "install_methods": [ - { - "type": "default", - "script": "ct/alpine-wakapi.sh", - "resources": { - "cpu": 1, - "ram": 512, - "hdd": 4, - "os": "alpine", - "version": "3.23" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "The first user created will be an admin.", - "type": "warning" - } - ] -} \ No newline at end of file