diff --git a/ct/habitica.sh b/ct/habitica.sh deleted file mode 100644 index 0354702694..0000000000 --- a/ct/habitica.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) -# Copyright (c) 2021-2025 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/HabitRPG/habitica - -APP="Habitica" -var_tags="${var_tags:-gaming}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-4096}" -var_disk="${var_disk:-8}" -var_os="${var_os:-debian}" -var_version="${var_version:-12}" -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/habitica" ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - NODE_VERSION="20" NODE_MODULE="gulp-cli,mocha" setup_nodejs - if check_for_gh_release "habitica" "HabitRPG/habitica"; then - msg_info "Stopping Service" - systemctl stop habitica-mongodb - systemctl stop habitica - systemctl stop habitica-client - msg_info "Stopped Service" - - msg_info "Save configuration" - if [[ -f /opt/habitica/config.json ]]; then - cp /opt/habitica/config.json ~/config.json - msg_ok "Saved configuration" - else - msg_warn "No configuration file found, skipping save" - fi - - fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica" - - msg_info "Updating $APP" - cd /opt/habitica - $STD npm i - $STD npm run postinstall - $STD npm run client:build - $STD gulp build:prod - msg_ok "Updated $APP" - - msg_info "Restoring configuration" - if [[ -f ~/config.json ]]; then - cp ~/config.json /opt/habitica/config.json - msg_ok "Restored configuration" - else - msg_warn "No configuration file found to restore" - fi - - msg_info "Starting Service" - systemctl start habitica-mongodb - systemctl start habitica - systemctl start habitica-client - msg_ok "Started Service" - msg_ok "Updated successfully!" - 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}:3000${CL}" diff --git a/ct/headers/habitica b/ct/headers/habitica deleted file mode 100644 index 144591bb5b..0000000000 --- a/ct/headers/habitica +++ /dev/null @@ -1,6 +0,0 @@ - __ __ __ _ __ _ - / / / /___ _/ /_ (_) /_(_)________ _ - / /_/ / __ `/ __ \/ / __/ / ___/ __ `/ - / __ / /_/ / /_/ / / /_/ / /__/ /_/ / -/_/ /_/\__,_/_.___/_/\__/_/\___/\__,_/ - diff --git a/frontend/public/json/habitica.json b/frontend/public/json/habitica.json deleted file mode 100644 index 76690b9dca..0000000000 --- a/frontend/public/json/habitica.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "Habitica", - "slug": "habitica", - "categories": [ - 24 - ], - "date_created": "2025-03-03", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 3000, - "documentation": "https://github.com/HabitRPG/habitica/wiki", - "website": "https://habitica.com/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/habitica.webp", - "config_path": "/opt/habitica/config.json", - "description": "Habitica is an open-source habit-building program that treats your life like a role-playing game. Level up as you succeed, lose HP as you fail, and earn Gold to buy weapons and armor!", - "install_methods": [ - { - "type": "default", - "script": "ct/habitica.sh", - "resources": { - "cpu": 2, - "ram": 4096, - "hdd": 8, - "os": "debian", - "version": "12" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "It takes a minute or two after installation for web UI to start, please be patient.", - "type": "info" - } - ] -} diff --git a/install/habitica-install.sh b/install/habitica-install.sh deleted file mode 100644 index 237d860a0f..0000000000 --- a/install/habitica-install.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2025 community-scripts ORG -# Author: Slaviša Arežina (tremor021) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://github.com/HabitRPG/habitica - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -msg_info "Installing Dependencies" -$STD apt install -y \ - libkrb5-dev \ - build-essential \ - git -curl -fsSL "http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb" -o "libssl1.1_1.1.1f-1ubuntu2_amd64.deb" -$STD dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb -msg_ok "Installed Dependencies" - -NODE_VERSION="20" NODE_MODULE="gulp-cli,mocha,npm@10" setup_nodejs -fetch_and_deploy_gh_release "habitica" "HabitRPG/habitica" "tarball" "latest" "/opt/habitica" - -msg_info "Setup ${APPLICATION}" -IPADDRESS=$(hostname -I | awk '{print $1}') -cd /opt/habitica -$STD npm i -$STD npm run postinstall -cp config.json.example config.json -sed -i "s/\"TRUSTED_DOMAINS\": \"/&http:\/\/$IPADDRESS:3000,/" config.json -$STD npm run client:build -$STD gulp build:prod - -msg_ok "Setup ${APPLICATION}" - -msg_info "Creating Service" -cat </etc/systemd/system/habitica-mongodb.service -[Unit] -Description=Habitica MongoDB Service -After=network.target - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/habitica -ExecStart=/usr/bin/npm run mongo:dev -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/habitica.service -[Unit] -Description=Habitica Service -After=habitica-mongodb.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/habitica -ExecStart=/usr/bin/npm start -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/habitica-client.service -[Unit] -Description=Habitica Client Service -After=habitica.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/habitica -ExecStart=/usr/bin/npm run client:dev -Restart=always - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now habitica-mongodb -systemctl enable -q --now habitica -systemctl enable -q --now habitica-client -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc