Commit Graph

14 Commits

Author SHA1 Message Date
Yury Kossakovsky
8b08442815 refactor: extract telemetry and database modules
- create scripts/telemetry.sh with all telemetry functions
- rename init_databases.sh to databases.sh and convert to library
- remove code duplication in init_all_databases()
- update all scripts to source new modules
- update documentation references
2025-12-25 18:22:05 -07:00
Yury Kossakovsky
a1521f8a48 feat: add error telemetry with stage tracking
sends minimal data to scarf on install/update failures:
event type, stage, exit_code. uses err trap in orchestrator
scripts. respects existing opt-out settings.
2025-12-25 18:22:05 -07:00
Yury Kossakovsky
d6cd2d44df fix: configure git pull.rebase to prevent divergent branch errors 2025-12-22 09:22:42 -07:00
Yury Kossakovsky
7a429ede7a refactor: remove redundant log message from update script 2025-12-16 16:38:03 -07:00
Yury Kossakovsky
7711fdbf89 feat(update): preserve user directories during git reset
backup and restore user-customizable directories (like python-runner/)
during update to prevent data loss from git reset --hard

closes #22
2025-12-13 09:21:14 -07:00
Yury Kossakovsky
e0018f2b2d refactor: consolidate shared utilities and add script documentation
- move common functions to utils.sh: init_paths, read_env_var, write_env_var,
  is_profile_active, load_env, gen_password, gen_hex, gen_base64, generate_bcrypt_hash
- add documentation headers to all installation scripts
- replace duplicate code with shared utility calls
- consolidate bcrypt hash generation loop in 03_generate_secrets.sh
- add DEBIAN_FRONTEND save/restore helpers for whiptail scripts
- standardize path initialization across all scripts
2025-12-12 09:58:12 -07:00
Yury Kossakovsky
e05c1c8916 Add system package update step in update.sh script
- Implemented a check to update Ubuntu packages using apt-get before executing the apply_update process. This ensures the system is up-to-date, enhancing the overall update procedure. Added logging for successful updates and warnings for non-Debian systems.
2025-08-06 10:34:07 -06:00
Yury Kossakovsky
eeb19f590f Refactor logging and user prompts in installation and wizard scripts
- Enhanced user feedback by replacing echo statements with log_info and log_error for better consistency in logging.
- Added empty echo statements before user prompts in 03_generate_secrets.sh to improve readability.
- Removed unnecessary log messages related to Caddy installation and uninstallation in 03_generate_secrets.sh.
- Updated 04_wizard.sh to include utility sourcing and improved logging for service selection and profile updates.
- Streamlined apply_update.sh by removing redundant log messages regarding Supabase compose file checks.
2025-05-23 15:05:23 -06:00
Yury Kossakovsky
96e640b33c Enhance update script with git reset functionality
- Added a git reset --hard HEAD command to the update.sh script to ensure a clean working directory before pulling the latest changes. This helps prevent issues caused by uncommitted local changes during updates, while also logging a warning if the reset fails.
2025-05-14 14:20:51 -06:00
Yury Kossakovsky
a40bced3f3 Add path to apply_update.sh in update script
- Updated the update.sh script to define the path for the apply_update.sh script, ensuring it can be referenced correctly during the update process.
- This change enhances the script's functionality by establishing a clear link to the new update handling script introduced in the previous commit.
2025-05-12 12:31:27 -06:00
Yury Kossakovsky
d6f3522ca7 Add apply_update.sh script to streamline update process
- Introduced a new script, apply_update.sh, to handle the update process, including stopping services, pulling the latest container versions, and modifying the .env file based on user input for n8n workflow import and worker count.
- Refactored update.sh to delegate the update tasks to apply_update.sh, improving code organization and maintainability.
- Enhanced error handling and logging throughout the update process for better user experience and troubleshooting.
2025-05-12 12:25:58 -06:00
Yury Kossakovsky
8716bd7fb4 Enhance update script to allow user input for n8n worker count
- Added functionality to prompt the user for a new n8n worker count during the update process, including validation for positive integers.
- Improved error handling and logging for cases where the N8N_WORKER_COUNT line is missing in the .env file, ensuring better user guidance and script robustness.
2025-05-12 12:14:18 -06:00
Yury Kossakovsky
8ef4cee057 Update run services script path in update.sh
- Changed the path of the run services script from 04_run_services.sh to 05_run_services.sh to reflect the updated script structure.
2025-05-09 17:10:05 -06:00
Yury Kossakovsky
448a34f959 Add installation and setup scripts for automated environment configuration
- Introduced a series of scripts to automate system preparation, Docker installation, secret generation, service execution, and final reporting.
- Implemented logging functions for better visibility during script execution.
- Ensured checks for required files and user inputs to enhance robustness.
- Added functionality for managing Docker services and generating a comprehensive installation summary.
2025-05-05 13:56:24 -06:00