ISPConfig Auto Update Tool

Discussion in 'Developers' Forum' started by ahrasis, Oct 12, 2025 at 7:36 AM.

  1. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I have created another tool which aims to automatically update ISPConfig software, if there is any new update. You can set cron job as you like but I think checking once a day may be fine to many as it will not download anything if the current stable version ISPConfig is the same with the one in your server.

    You will need to create ispconfig-autoupdate.ini in your conf-custom folder which you can base on https://git.ispconfig.org/ispconfig...cs/autoinstall_samples/autoinstall.ini.sample. Below are some from the samples that I am using:
    Code:
    [update]
    do_backup=yes
    reconfigure_permissions_in_master_database=yes
    reconfigure_services=yes
    ispconfig_port=8080
    create_new_ispconfig_ssl_cert=yes
    reconfigure_crontab=yes
    create_ssl_server_certs=y
    ignore_hostname_dns=y
    ispconfig_postfix_ssl_symlink=y
    ispconfig_pureftpd_ssl_symlink=y
    
    svc_detect_change_mail_server=yes
    svc_detect_change_web_server=yes
    svc_detect_change_dns_server=yes
    svc_detect_change_xmpp_server=yes
    svc_detect_change_firewall_server=yes
    svc_detect_change_vserver_server=yes
    svc_detect_change_db_server=yes
    

    Officially (in ispconfig git once approved):
    Code:
    cd /etc/cron.daily
    curl -sL https://git.ispconfig.org/ispconfig/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' > ispconfig-autoupdate.sh
    chmod +x ispconfig-autoupdate.sh
    ./ispconfig-autoupdate.sh
    
    Or directly via this command.
    Code:
    curl -sL https://git.ispconfig.org/ispconfig/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' | bash
    
    Direct with debug and dry run:
    Code:
    curl -sL https://git.ispconfig.org/ispconfig/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' \
      | bash -s -- --debug --dry-run
    

    Temporarily (currently in my ispconfig git):
    Code:
    cd /etc/cron.daily
    curl -sL https://git.ispconfig.org/ahrasis/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' > ispconfig-autoupdate.sh
    chmod +x ispconfig-autoupdate.sh
    ./ispconfig-autoupdate.sh
    
    Or directly via this command.
    Code:
    curl -sL https://git.ispconfig.org/ahrasis/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' | bash
    
    Direct with debug and dry run:
    Code:
    curl -sL https://git.ispconfig.org/ahrasis/tools/-/raw/master/ispconfig-autoupdate.sh \
      | sed 's/\r$//' \
      | bash -s -- --debug --dry-run
    
     
    Last edited: Oct 12, 2025 at 8:11 AM
    till likes this.

Share This Page