Commit Graph

60 Commits

Author SHA1 Message Date
a826769899 Three-tier defaults system | security improvements | error_handler | improved logging | improved container creation | improved architecture (#9540)
* Refactor Core

Refactored misc/alpine-install.func to improve error handling, network checks, and MOTD setup. Added misc/alpine-tools.func and misc/error_handler.func for modular tool installation and error management. Enhanced misc/api.func with detailed exit code explanations and telemetry functions. Updated misc/core.func for better initialization, validation, and execution helpers. Removed misc/create_lxc.sh as part of cleanup.

* Delete config-file.func

* Update install.func

* Refactor stop_all_services function and variable names

Refactor service stopping logic and improve variable handling

* Refactor installation script and update copyright

Updated copyright information and adjusted package installation commands. Enhanced IPv6 disabling logic and improved container customization process.

* Update install.func

* Update license comment format in install.func

* Refactor IPv6 handling and enhance MOTD and SSH

Refactor IPv6 handling and update OS function. Enhance MOTD with additional details and configure SSH settings.

* big core refactor

* Enhance IPv6 configuration menu options

Updated IPv6 Address Management menu options for clarity and added a new option for fully disabling IPv6.

* Update default Node.js version to 24 LTS

* Update misc/alpine-tools.func

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>

* indention

* remove debugf and duplicate codes

* Update whiptail backtitles and error codes

Removed '[dev]' from whiptail --backtitle strings for consistency. Refactored custom exit codes in build.func and error_handler.func: updated Proxmox error codes, shifted MySQL/MariaDB codes to 260-263, and removed unused MongoDB code. Updated error descriptions to match new codes.

* comments

* Refactor error handling and clean up debug comments

Standardized bash variable checks, removed unnecessary debug and commented code, and clarified error handling logic in container build and setup scripts. These changes improve code readability and maintainability without altering functional behavior.

* Update build.func

* feat: Improve LXC network checks and LINSTOR storage handling

Enhanced LXC container network setup to check for both IPv4 and IPv6 addresses, added connectivity (ping) tests, and provided troubleshooting tips on failure. Updated storage validation to support LINSTOR, including cluster connectivity checks and special handling for LINSTOR template storage.

---------

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
2025-12-04 07:52:18 +01:00
3f2f29d352 Refactor IPv6 disable logic and add 'disable' option (#9326)
Replaces previous IPv6 disabling method with a dedicated 'disable' option, storing sysctl settings in /etc/sysctl.d/99-disable-ipv6.conf. Updates build and install scripts to clarify the difference between 'none' (no assignment) and 'disable' (fully disables IPv6), adds user warnings, and disables IPv6 listeners in nginx if present.
2025-11-21 08:53:46 +01:00
5b39f2931e force disable IPv6 if IPV6_METHOD = none (#9277)
* Enhance IPv6 disabling logic in install script

Updated verb_ip6 to check both IPV6_METHOD and DISABLEIPV6 variables. Added disabling for all, default, and loopback interfaces, improved messaging, and redirected sysctl output to /dev/null for cleaner logs.

* Improve IPv6 disabling logic in install scripts

Updated both alpine-install.func and install.func to enhance IPv6 disabling by checking IPV6_METHOD and adding more sysctl settings. Also improved messaging and removed suppression of sysctl output in install.func.
2025-11-19 16:27:42 +01:00
23573bfce9 fix apt-cacher heredoc (#6385) 2025-07-30 15:31:00 +02:00
3e504cf48f final fixes 2025-07-04 22:19:35 +02:00
d2cbfcd69a Update install.func 2025-07-04 22:12:37 +02:00
ebfb6a4e34 Update install.func 2025-07-04 22:07:23 +02:00
7403470bd7 Update install.func 2025-07-04 21:55:35 +02:00
32d6194ade Update install.func 2025-07-04 21:54:15 +02:00
7561e26c0a Core layer refactor: centralized error traps and msg_* consistency (#5705) 2025-07-04 21:22:50 +02:00
8d91a5df5f Fix Apt-Cacher Issue with CAT 2025-06-25 18:03:54 +02:00
1f7d85ac60 [core]: unify misc/*.func scripts with centralized logic from core.func (#5316)
* Core Changes

* Formatting

* add create_lxc patches

* Update install.func

* remove dev header
2025-06-20 13:28:06 +02:00
0e63437154 install.func (#5109) 2025-06-12 17:26:12 +02:00
19cf4d3dc2 Add TAB3 formatting var to core (#4496) 2025-05-15 10:31:37 +02:00
ce76ebc68f Add: tools.func (#4100)
* Add: tools.func

* add paths into build.func and install.func
2025-04-28 15:25:10 +02:00
23c01141db core: fix raw path (#3656) 2025-04-04 16:05:12 +02:00
8c051b8186 Replace wget with curl -fsSL, normalize downloads, and prep for IPv6 (#3455)
* Initial Call, Switch from curl -s to curl -fsSL and wget to curl -fssL

* more switches

* switch vms

* more curls

* More curls

* more

* more

* more changes

* more

* prepare ipv6 calls

* change frontend to ipv6

* Formatting

* Fromatting

* Update gomft.sh

* Update gomft-install.sh

* Update ersatztv.sh

* Update build.func

---------

Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
2025-04-01 10:25:46 +02:00
888b4c34bd [core] install core deps (debian / ubuntu) (#3366)
* [core] install core deps (debian / ubuntu)

Installed Core Deps "sudo, curl, mc" on debian / ubuntu based lxc's

* Update install.func
2025-03-24 11:51:58 +01:00
407801d9ff Update install.func (#2690) 2025-02-27 09:07:24 +01:00
10d4ce4eef Verbose_Update (#2583) 2025-02-24 11:18:38 +01:00
c5101d3358 Revert "Prevent double spinner (#2203)" (#2211)
This reverts commit 33ef8aadbe.
2025-02-10 11:29:59 +01:00
33ef8aadbe Prevent double spinner (#2203)
Co-authored-by: Rögl-Brunner Michel <Michel.Roegl-brunner@htl-braunau.int>
2025-02-10 11:14:24 +01:00
8129e3cf39 [API] Masiv update to api (#1990)
* Masiv refactor of the api

* Masiv refactor of the api

* Format page.tsx

* Format page.tsx

* testing

* update build.func

* Change urls to Repo

* Change urls to Repo

* update install.func

* Add post_to_api_vm

* Update api.func

* Update api.func

* Update api.func

* update api.func
2025-02-04 13:23:20 +01:00
4cf043675e update motd file to dynamic ip (#1633) 2025-01-21 11:02:11 +01:00
2aed45fa61 fix: actually add the given root SSH key to the container (#1502) 2025-01-15 15:01:24 +01:00
15f04d525d Happy new Year! Update Copyright to 2025 (#1150) 2025-01-01 13:37:29 +01:00
9256880c9f Fix SSH root access in install.func (#858) 2024-12-16 23:43:32 +01:00
315949b446 Massive Update: build.func | install.func | create_lxc.sh (Part 1) (#643)
* Big Update: Build.func Install.Func Create_LXC

* Change Author

Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>

* Fix indentation / naming / echos

* Fix some Parts

* Add alpine-install.func

* update alpine to 3.20

* fix spaces

* Update build.func

* Merge Create_LXC from DEV

* Merge from DEV

* Merge from DEV

---------

Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-12-16 12:41:51 +01:00
a4a1821822 Changed all dependencies to the community project 2024-11-02 08:48:05 +01:00
d26e474ccb Update install.func
add a one second delay before checking internet connectivity
2024-08-06 13:25:55 -04:00
9cbd0f3037 Update install.func
fixes https://github.com/tteck/Proxmox/issues/3386
2024-07-16 11:27:55 -04:00
a078adfaea Update install.func
tweak
2024-06-29 11:03:54 -04:00
4bce8ff991 Update install.func
tweak
2024-05-09 15:02:29 -04:00
4ccf823d7a Update install.func
Spinner update
2024-04-21 09:11:46 -04:00
2e36b903ad Update install.func
slow spinner
2024-04-02 11:05:06 -04:00
71ca43c7a2 Update install.func
The script now checks for both IPv4 and IPv6 Internet connectivity and displays the results. Only if both IPv4 and IPv6 checks fail, it will then prompt the user.
2024-02-21 12:19:48 -05:00
c0e3edc0c9 Update install.func
The script now checks IPv6 internet connectivity by attempting to ping "google.com" instead of Cloudflare's DNS IPv6 server address.
2024-02-21 11:05:58 -05:00
ffd2fc3b86 Update install.func
Check to see if the apt-cacher-ng proxy is available before attempting to use it. If it's not available, the system will directly communicate with the apt repositories.
2024-02-12 05:53:26 -05:00
72de387b5c Update install.func
update the script to include IPv6 connectivity considerations
2024-02-02 07:40:50 -05:00
acec4f6293 Update install.func
tweak
2024-01-24 04:49:08 -05:00
1782fad313 Update install.func
tweak
2024-01-21 04:30:01 -05:00
6a83a3eaac New feature
- The option to utilize Apt-Cacher-NG (Advanced settings) when creating LXCs. The added functionality is expected to reduce bandwidth usage and provide faster operating system updates.
- Requires the Apt-Cacher-NG LXC
2024-01-12 15:00:42 -05:00
50bc9c334a Update install.func
revert
2024-01-12 12:11:16 -05:00
4cd3cf0e23 Update install.func
accommodate apt-cacher-ng
2024-01-12 10:30:39 -05:00
9ca401e30f Update verbose mode
- Remove `set -x`
- Only entries with `$STD` will be shown
2024-01-09 19:44:38 -05:00
867a10f03f Add new element
- add spinner
2024-01-06 17:15:45 -05:00
00f73c7370 Update install.func
tweak
2024-01-03 16:09:16 -05:00
7cfb239d70 Update install.func
revert tweak
2023-12-20 11:32:06 -05:00
db0abe293d Update install.func
tweak
2023-12-20 11:26:26 -05:00
e45aa5e42a Update install.func
- globally add update command
2023-10-05 15:36:19 -04:00