Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linglong-bin.postinst #508

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jun 17, 2024

  1. Update linglong-bin.postinst

    The following enhancements were made to the linglong-bin.postinst script:
    
    Enhanced Logging: The script now logs actions taken during package configuration to /var/log/linglong-bin.log, facilitating easier troubleshooting and diagnosis of potential issues.
    
    Improved Systemd Management: Logging for systemd-sysusers, systemctl, and sysctl operations were added for greater insight into the system service management process.
    
    Clearer Variable Use: The hardcoded path to the sysctl configuration file was replaced with the sysctl_config variable, making the script more maintainable and adaptable to future changes.
    
    These refinements aim to enhance the script's robustness and facilitate better understanding and debugging by both developers and system administrators.
    Owensuwu authored Jun 17, 2024
    Configuration menu
    Copy the full SHA
    b513930 View commit details
    Browse the repository at this point in the history
  2. Update linglong-bin.preinst

    Enhanced Logging: The script now logs actions taken during package upgrades to /var/log/linglong-bin.log, facilitating easier troubleshooting and diagnosis of potential issues.
    Error Handling: Improved error handling was added to the process of moving the Linglong repository during an upgrade. The script now checks for the existence of both the old and new repository locations and provides informative messages if errors occur.
    Variable Usage: Introduced variables for paths (old_repo, new_repo, old_package_list, old_data, log_file) to enhance readability and maintainability.
    Comments: Added comments to clarify the purpose of code blocks and variables, making the script more understandable for future maintainers.
    Owensuwu authored Jun 17, 2024
    Configuration menu
    Copy the full SHA
    1559e7a View commit details
    Browse the repository at this point in the history
  3. Update linglong-bin.preinst

    Owensuwu authored Jun 17, 2024
    Configuration menu
    Copy the full SHA
    da02123 View commit details
    Browse the repository at this point in the history