38 Commits

Author SHA1 Message Date
CanbiZ
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
CanbiZ
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
CanbiZ
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
Burrito
9a28ce0263
alpine-install: switch to using GitHub to fetch tools when using GitHub (#7566) 2025-09-11 11:49:14 +02:00
CanbiZ
74b2407c53 alpine: add source for tools 2025-08-25 14:05:55 +02:00
九条涼果
0955ec4b7f
fix: SSH authorized keys not added in Alpine install script (#6316) 2025-07-28 19:44:52 +02:00
CanbiZ
7561e26c0a
Core layer refactor: centralized error traps and msg_* consistency (#5705) 2025-07-04 21:22:50 +02:00
CanbiZ
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
CanbiZ
010928fee2
Refactor: Remove gpg / gnupg from script base (#4775)
* Refactor: Remove gpg / gnupg from

* push more

* add more

* Update reactive-resume-install.sh

* Revert: add unzip

---------

Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
2025-05-28 10:54:01 +02:00
Slaviša Arežina
19cf4d3dc2
Add TAB3 formatting var to core (#4496) 2025-05-15 10:31:37 +02:00
Slaviša Arežina
9140fd52ac
Use onliner for updates (#4414) 2025-05-12 16:07:07 +02:00
CanbiZ
a1754dff4e
Feature: Autologin for Alpine (#4344) 2025-05-09 15:28:12 +02:00
CanbiZ
23c01141db
core: fix raw path (#3656) 2025-04-04 16:05:12 +02:00
CanbiZ
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
CanbiZ
9cbd315456
[core]: add functions for Alpine (update / core deps) (#3437) 2025-03-27 11:52:04 +01:00
CanbiZ
127390c917
Alpine-Install (core) add timezone (tz) check (#3057) 2025-03-13 15:54:50 +01:00
CanbiZ
10d4ce4eef
Verbose_Update (#2583) 2025-02-24 11:18:38 +01:00
CanbiZ
4cf043675e
update motd file to dynamic ip (#1633) 2025-01-21 11:02:11 +01:00
CanbiZ
15f04d525d
Happy new Year! Update Copyright to 2025 (#1150) 2025-01-01 13:37:29 +01:00
CanbiZ
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
CanbiZ
a4a1821822 Changed all dependencies to the community project 2024-11-02 08:48:05 +01:00
tteckster
79b29951d7
Update alpine-install.func
moved to `build.func`
2024-01-16 22:29:34 -05:00
tteckster
9ca401e30f
Update verbose mode
- Remove `set -x`
- Only entries with `$STD` will be shown
2024-01-09 19:44:38 -05:00
tteckster
5f3bd5904e
Update alpine-install.func
no spinner allowed
2024-01-07 10:50:17 -05:00
tteckster
df25fe9446
Update alpine-install.func
add spinner, attempt 3
2024-01-07 10:43:29 -05:00
tteckster
c73a2909f7
Update alpine-install.func
add spinner, attempt 2
2024-01-07 10:36:15 -05:00
tteckster
e27191e607
Update alpine-install.func
revert add spinner
2024-01-07 09:41:22 -05:00
tteckster
9f03c98e8f
Update alpine-install.func
add spinner
2024-01-07 01:45:12 -05:00
tteckster
8c780535a1
Update alpine-install.func
change repositories to `latest-stable`
2023-12-27 20:04:50 -05:00
tteckster
95e26b6842
Update alpine-install.func
fixes https://github.com/tteck/Proxmox/issues/2015
2023-11-09 09:09:44 -05:00
tteckster
88092fa613
Update alpine-install.func
tweak disable_ipv6
2023-08-14 21:23:58 -04:00
tteckster
59b4e28413
Update alpine-install.func
add `sysctl -p` command
fixes https://github.com/tteck/Proxmox/issues/1688
2023-08-14 15:12:51 -04:00
5olu7ion
34674317b3
Case insensitive User Input (#1475)
* Always lower User input
2023-06-09 18:38:17 -04:00
tteckster
c12f2773e7
Code refactoring 2023-05-15 07:39:30 -04:00
tteckster
ab40267e90
Update alpine-install.func
enable root SSH access
2023-03-25 20:21:12 -04:00
tteckster
1f32020d5c
Update alpine-install.func
tweak
2023-03-25 08:22:24 -04:00
tteckster
6829e1121d
default, no root password for alpine-* install 2023-03-25 06:12:45 -04:00
tteckster
4175b8d5f6
The latest iteration of the scripts (#1220) 2023-03-22 20:48:20 -04:00