apt command twice in cron?!

  • Hi,
    My OMV 4.x (4.1.20-1) has 2 files to launch daily apt task, /etc/cron.d/cron-apt and /etc/cron.daily/apt-compat . The latter is the file from Debian, but what is the former? Does it come from OMV or is it (more likely) me who made a mistake? Could you have a look into your own server?


    Thank you!



    Here is my /etc/cron.d/cron-apt:



    Code
    #
    # Regular cron jobs for the cron-apt package
    #
    # Every night at 4 o'clock.
    0 4	* * *	root	test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
    # Every hour.
    # 0 *	* * *	root	test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2
    # Every five minutes.
    # */5 *	* * *	root	test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt /etc/cron-apt/config2
    • Offizieller Beitrag

    Does it come from OMV or is it (more likely) me who made a mistake? Could you have a look into your own server?

    This seems to be something you did. OMV creates openmediavault-cron-apt

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    And openmediavault-cron-apt and apt-compat are not doublon of each other, aren't they?

    No. openmediavault-cron-apt is a bunch of comments and one real line. apt-compat is about 55 lines of code.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!