Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to apply the changes to /etc/cpupdate.conf

Discussion in 'General Discussion' started by shazde, Apr 4, 2018.

  1. shazde

    shazde Active Member

    Joined:
    May 19, 2014
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I made some changes to /etc/cpupdate.conf to make updates manual but still when I go to whm and check the update preferences the old values are shown and the changes to /etc/cpupdate.conf are being ignored.

    Is there a command I need to run after changes to /etc/cpupdate.conf?

    Here is the content of my /etc/cpupdate.conf

    CPANEL=release
    RPMUP=manual
    SARULESUP=daily
    STAGING_DIR=/usr/local/cpanel
    UPDATES=manual
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @shazde

    Can you check the permissions of the cpupdate.conf file? Changes made here should be reflected at

    WHM>>Server Configuration>>Update Preferences

    I tested this on a test server to confirm this as well. The permission and ownership of this file should be as follows:

    Code:
    # stat /etc/cpupdate.conf
      File: ‘/etc/cpupdate.conf’
      Size: 84            Blocks: 8          IO Block: 4096   regular file
    Device: fd01h/64769d    Inode: 1311907     Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2018-04-05 10:07:58.537243292 -0400
    Modify: 2018-04-05 10:07:56.110243777 -0400
    Change: 2018-04-05 10:07:56.111243776 -0400
     Birth: -
    The attributes of the file should be as follows as well:
    Code:
    # lsattr /etc/cpupdate.conf
    -------------e-- /etc/cpupdate.conf
    Per our documentation there should be no extra steps necessary to modify these values. You can see this here:

    The cPanel Update Configuration File - cpupdate.conf

    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. shazde

    shazde Active Member

    Joined:
    May 19, 2014
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Here is what I have:
    Code:
    # stat /etc/cpupdate.conf
      File: `/etc/cpupdate.conf'
      Size: 89            Blocks: 8          IO Block: 4096   regular file
    Device: fc02h/64514d    Inode: 21760146    Links: 1
    Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2018-04-05 10:59:25.923000001 +0100
    Modify: 2018-04-05 09:39:03.000000000 +0100
    Change: 2018-04-05 10:59:15.757000001 +0100
    Code:
    # lsattr /etc/cpupdate.conf
    -------------e- /etc/cpupdate.conf
    Also the file and whm now display the same values but that was not the case yesterday.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @shazde

    I'm happy to hear that they both display the same data. When you make changes now are they immediately reflected?

    If you run the WHMAPI1 function for this is the behavior different? You can find it here:

    WHMAPI1 Functions update_updateconf

    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice