Commit Graph

65 Commits

Author SHA1 Message Date
Mărcziem ™
e91ac9668f Fix Samba service names for openSUSE
- Use smb.service and nmb.service instead of smbd.service and nmbd.service
- openSUSE uses different service names for Samba
2025-10-06 10:40:29 +02:00
Mărcziem ™
93e444367d Remove -q flags from zypper commands for openSUSE compatibility
- zypper refresh -q and update -q not working on openSUSE Leap
- Remove quiet flags to ensure commands execute successfully
2025-10-06 10:34:25 +02:00
Mărcziem ™
7a5618d4c0 Fix zypper quiet flags for openSUSE
- Change --quiet to -q for zypper refresh and update commands
- zypper uses short options for quiet mode
2025-10-06 10:32:26 +02:00
Mărcziem ™
9077b4dbb9 Fix get_system_info for cross-distribution compatibility
- Remove dependency on lsb_release (not available on all distros)
- Use DISTRO_NAME variable for OS info
- Fix uptime parsing to work without -p option
2025-10-06 10:30:15 +02:00
Mărcziem ™
9d27968c71 Fix openSUSE package management issues
- Make apt cleanup conditional for apt-based distros only
- Change zypper options from -q to --quiet for compatibility
- Add progress bar consistency for openSUSE updates
2025-10-06 10:16:15 +02:00
Mărcziem ™
0b508c822e Fix openSUSE Leap detection in setup.sh
- Add support for 'opensuse-leap' distribution ID
- Normalize 'opensuse-leap' to 'opensuse' for package management
- Resolves issue where openSUSE Leap was not recognized as supported
2025-10-06 10:12:16 +02:00
Mărcziem ™
f95a843b4c Fix unbound DISTRO_NAME variable in installation summary
- Added DISTRO_NAME variable to detect_distro function using PRETTY_NAME from /etc/os-release
- Export DISTRO_NAME for use in show_installation_summary function
- Prevent 'unbound variable' error when creating services summary file
2025-10-03 13:50:35 +02:00
Mărcziem ™
3c9fe4017b Fix Samba user reference to use ADMIN_USER instead of NEW_USER
- Corrected setup_samba function to use ${ADMIN_USER:-$USER} consistently
- Export configuration variables in load_or_create_config for subshell access
- Ensure ADMIN_USER variable is properly available in all lib scripts
2025-10-03 13:43:55 +02:00
Mărcziem ™
c0d6a07cec fix: Correct user references throughout codebase to use ADMIN_USER or current user
- Replace all NEW_USER references with ADMIN_USER or current user
- Fix Samba password prompt to use correct user instead of 'nasadmin'
- Update SSH, Docker, and Samba configurations to use proper user variables
- Ensure consistent user handling across all services
- Remove hardcoded 'nasadmin' references
2025-10-03 13:24:47 +02:00
Mărcziem ™
21781166ea feat: Use existing sudo user instead of creating new nasadmin user
- Modify setup.sh to automatically detect and use SUDO_USER
- Pre-fill admin username with current sudo user
- Only create new user if specified user doesn't exist
- Update README.md to document user management changes
- Update CHANGELOG.md with user management improvements
- Remove unnecessary NEW_USER default creation
2025-10-03 13:15:51 +02:00
Mărcziem ™
5a0a2401ce fix: Correct services summary file path to user home directory
- Change summary file location from /root/nas_services.txt to ~/nas_services.txt
- Use SUDO_USER environment variable to determine correct user home directory
- Update README.md to reflect the correct path for the services summary file
- Ensure file is created in the home directory of the user who ran sudo
2025-10-03 13:10:54 +02:00
Mărcziem ™
0253b226a4 docs: Update README.md and CHANGELOG.md for v2.1.1
- Update version to v2.1.1 in README.md
- Add new features section for v2.1.1 including Docker auto-repair, NFS fixes, Netdata updates
- Update CHANGELOG.md with detailed fixes and improvements
- Update service descriptions to reflect optional nature of services
- Add Docker repair script to directory structure and troubleshooting
- Document new auto-repair functionality and optional unattended-upgrades
2025-10-03 13:06:52 +02:00
Mărcziem ™
8420a0c8b5 fix(performance): check if root_disk is valid and scheduler path exists before writing 2025-10-03 12:58:40 +02:00
Mărcziem ™
144b5c5929 fix(nfs): use # as sed delimiter to handle paths with slashes 2025-10-03 12:55:02 +02:00
Mărcziem ™
df501df118 fix(nfs): clean existing export entries before adding new ones to prevent duplicates 2025-10-03 12:52:49 +02:00
Mărcziem ™
14b35c9210 fix(nfs): avoid duplicate export entries in /etc/exports 2025-10-03 12:48:57 +02:00
Mărcziem ™
cfdace6b87 fix(netdata): use official packagecloud repository instead of broken kickstart.sh 2025-10-03 12:47:01 +02:00
Mărcziem ™
2aa614949f feat(docker): prompt user after unrecoverable docker start failures; allow abort or continue without docker 2025-10-03 12:36:22 +02:00
Mărcziem ™
a8ea1cf377 fix(docker): auto-run repair_docker.sh and retry docker start; disable docker if unrecoverable 2025-10-03 12:32:57 +02:00
Mărcziem ™
0b25a86f91 chore(scripts): add repair_docker.sh to validate and recover docker daemon.json and restart docker 2025-10-03 12:30:19 +02:00
Mărcziem ™
2593b6f8fe fix(docker): write valid /etc/docker/daemon.json and add optional data-root properly 2025-10-03 12:28:30 +02:00
Mărcziem ™
f106f966a3 feat(docker): interactive selection when multiple non-system users exist 2025-10-03 12:26:16 +02:00
Mărcziem ™
e545862043 feat(users): offer docker-group addition when creating admin user interactively 2025-10-03 12:25:25 +02:00
Mărcziem ™
d886652385 feat(docker): prefer ADMIN_USER/NEW_USER, auto-detect existing sudo user, create only if allowed 2025-10-03 12:24:06 +02:00
Mărcziem ™
abe0d451ab fix(docker): default DOCKER_DATA_DIR to DEFAULT_DOCKER_DATA_DIR to avoid unbound variable 2025-10-03 12:20:44 +02:00
Mărcziem ™
89349adc26 feat(users): interactive helper to create admin user if missing; call during config 2025-10-03 12:18:55 +02:00
Mărcziem ™
cfc234559e fix(docker): skip usermod when NEW_USER missing; optional user creation via CREATE_NEW_USER_IF_MISSING 2025-10-03 12:17:24 +02:00
Mărcziem ™
6eb78589b5 fix(docker): avoid unbound SUDO when not set; provide safe default 2025-10-03 12:15:15 +02:00
Mărcziem ™
7a2d1f1c8e chore(unattended): make automatic updates optional and opt-in via config 2025-10-03 12:11:57 +02:00
Mărcziem ™
b6cdf82356 fix(preflight): detect and clean apt/dpkg locks so setup can be restarted after abort 2025-10-03 12:04:17 +02:00
Mărcziem ™
4d645a31a6 fix(unattended): ensure noninteractive env under sudo and silence apt-listchanges 2025-10-03 12:01:43 +02:00
Mărcziem ™
767e607a27 fix(unattended): install non-interactively and avoid dpkg-reconfigure prompts 2025-10-03 11:59:16 +02:00
Mărcziem ™
c460f7c9e2 fix(unattended): preseed debconf and install non-interactively to avoid prompts 2025-10-03 11:54:27 +02:00
Mărcziem ™
59a46b3754 fix(handle_error): support wrapper-call usage and trap handler 2025-10-03 11:43:47 +02:00
Mărcziem ™
44e0c13435 fix(ssh): robust restart helper and use it for ssh restarts 2025-10-03 11:35:53 +02:00
Mărcziem ™
1a67acaafc fix(defaults): restore SCRIPT_AUTHOR and validate_config; remove debug-force 2025-10-03 11:31:08 +02:00
Mărcziem ™
0fd250a5b3 Revert temporary debugging changes now that lib scripts are fixed 2025-10-03 10:39:40 +02:00
Mărcziem ™
834b5382d5 fix(run_installation): avoid ((current_step++)) under set -e by using explicit arithmetic increment 2025-10-03 10:39:39 +02:00
Mărcziem ™
3e048ba938 fix(run_installation): avoid ((current_step++)) under set -e by using explicit arithmetic increment 2025-10-03 10:38:30 +02:00
Mărcziem ™
3fb7f3479e Add debug trace logs to run_installation to locate stall/abort point 2025-10-03 10:25:59 +02:00
Sebastian
2926b0ab66 Refactor Vaultwarden installation script
Updated Vaultwarden installation script for NAS setup. Improved error handling, Docker checks, and ensured proper sourcing.
2025-10-03 09:58:55 +02:00
Mărcziem ™
5b3b0465c7 Fix direct function calls in lib scripts to prevent execution on source 2025-10-03 09:54:41 +02:00
Mărcziem ™
5416687af2 Remove existing config file before creating new one to prevent loading old config 2025-10-03 09:31:38 +02:00
Mărcziem ™
34f45f978c Unset config variables before loading config to prevent environment pollution 2025-10-03 09:30:01 +02:00
Mărcziem ™
1c2dbe22a1 Force interactive configuration always for debugging config persistence issues 2025-10-03 09:27:03 +02:00
Mărcziem ™
494b13264e Force new configuration for debugging to resolve config persistence issues 2025-10-03 09:19:55 +02:00
Mărcziem ™
f3afd46abc Fix config loading after creation
- Load config after create_interactive_config to set variables in shell
- Ensures INSTALL_* variables are properly set for installation logic
2025-10-03 09:14:03 +02:00
Mărcziem ™
8db3151495 Fix config validation to recreate config on failure
- Change load_or_create_config to call create_interactive_config when validate_config fails
- This ensures inconsistent configs are replaced with valid ones
2025-10-03 09:10:48 +02:00
Mărcziem ™
0358f45d60 Add Docker dependency validation to validate_config
- Check if Docker-dependent services are enabled without Docker
- Force interactive config recreation if inconsistencies found
2025-10-03 09:09:44 +02:00
Mărcziem ™
fea22c3e0d Fix Docker dependency check in interactive config
- Use local variable for Docker selection to properly check dependencies
- Ensure Docker-dependent services are only prompted when Docker is selected
2025-10-03 09:02:13 +02:00