Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Auto update check, checks for updates to base system + packages and sends email alerts

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    87 Posts 22 Posters 34.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chrcoluk @wgstarks
      last edited by chrcoluk

      @wgstarks If I use your code and run the php command it just echoes the contents of the script to the shell.

      The original script gets executed instead but has an escape_filter error.

      Ok < was missing at the start but still get the same error.

      <pre style="white-space: pre-wrap;">PHP ERROR: Type: 64, File: /home/syslog.inc, Line: 875, Message: Cannot redeclare escape_filter_regex() (previously declared in /home/util.inc:4327)</pre>
      

      Interesting looks like it is sensitive to its run path, moving from /home to /root fixes it.

      pfSense CE 2.8.0

      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage @chrcoluk
        last edited by

        @chrcoluk said in Auto update check, checks for updates to base system + packages and sends email alerts:

        @wgstarks
        Ok < was missing at the start but still get the same error.

        <pre style="white-space: pre-wrap;">PHP ERROR: Type: 64, File: /home/syslog.inc, Line: 875, Message: Cannot redeclare escape_filter_regex() (previously declared in /home/util.inc:4327)</pre>
        

        Interesting looks like it is sensitive to its run path, moving from /home to /root fixes it.

        I suspect what it is sensitive to is that you have other files in /home (that should not be there). The include is searching the local directory before /etc/inc.

        C 1 Reply Last reply Reply Quote 1
        • wgstarksW
          wgstarks @dennypage
          last edited by

          @dennypage
          The actual file has the proper <?php. I likely missed it when I copy/pasted for the forum post.

          Box: SG-4200

          1 Reply Last reply Reply Quote 0
          • wgstarksW
            wgstarks
            last edited by

            I installed the system patches updates and now if I run the command I don't get any notifications regarding any updates even though there is a pfsense+ update available.
            Screenshot 2024-11-26 at 2.20.37 PM.png

            Also don't get any errors.

            Box: SG-4200

            1 Reply Last reply Reply Quote 0
            • C
              chrcoluk @dennypage
              last edited by

              @dennypage yeah makes sense, I use home as a work path for when I modify pfsense files before adding them as patches in the system patches area. Root path doesnt have any hence that path been ok.

              pfSense CE 2.8.0

              1 Reply Last reply Reply Quote 0
              • wgstarksW
                wgstarks @luckman212
                last edited by

                @luckman212 said in Auto update check, checks for updates to base system + packages and sends email alerts:

                I'm in the process of upgrading my systems to 23.09.1 and will update this script shortly (if it's possible) to handle the new update mechanism.

                Looks like the script was never updated.☹️
                GitHub shows the latest update was Mar 2nd, 2022 on gist.

                Box: SG-4200

                luckman212L 1 Reply Last reply Reply Quote 0
                • luckman212L
                  luckman212 LAYER 8 @wgstarks
                  last edited by

                  Yes, sorry to everyone who was waiting on that. Timing of other things just got in the way. I'm going to make another attempt at this. Hopefully it will bear fruit.

                  1 Reply Last reply Reply Quote 5
                  • GertjanG Gertjan referenced this topic on
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.