diff --git a/ct/done/wf-test.sh b/ct/done/wf-test.sh new file mode 100644 index 0000000..787282b --- /dev/null +++ b/ct/done/wf-test.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: +# License: +# Source: + +APP="WF-TEST" +var_tags="webserver" +var_disk="5" +var_cpu="1" +var_ram="1024" +var_os="debian" +var_version="12" +var_unprivileged="1" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if ! ls -d /opt/tomcat-* >/dev/null 2>&1; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_error "Currently we dont provide an Update of Apache Tomcat." + 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}:8080${CL}" diff --git a/install/wf-test-install.sh b/install/wf-test-install.sh new file mode 100644 index 0000000..1be8480 --- /dev/null +++ b/install/wf-test-install.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 tteck +# Author: tteck (tteckster) +# License: MIT +# https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y curl +$STD apt-get install -y sudo +$STD apt-get install -y mc +msg_ok "Installed Dependencies" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" diff --git a/json/wf-test.json b/json/wf-test.json new file mode 100644 index 0000000..790de8b --- /dev/null +++ b/json/wf-test.json @@ -0,0 +1,32 @@ +{ + "name": "wf-test", + "slug": "wf-test", + "categories": [2], + "date_created": "2024-05-02", + "type": "ct", + "updateable": false, + "privileged": false, + "interface_port": null, + "documentation": null, + "website": "https://www.debian.org/", + "logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/debian.svg", + "description": "Debian Linux is a distribution that emphasizes free software. It supports many hardware platforms.", + "install_methods": [ + { + "type": "default", + "script": "ct/debian.sh", + "resources": { + "cpu": 1, + "ram": 512, + "hdd": 2, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] +}