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

    Change captive portal images via cli ( ssh )

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 571 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.
    • luyoL
      luyo
      last edited by

      HI all, is there a way to change logo and background images of captive portal vi ssh ( or same directory with mv command )
      I know that:
      captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
      captiveportal-background.jpg -> /var/db/cpelements/captiveportal-background.jpg

      Changes are applied only from web.
      Is this possible ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • F
        free4 Rebel Alliance
        last edited by

        @luyo said in Change captive portal images via cli ( ssh ):

        I know that:
        captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
        captiveportal-background.jpg -> /var/db/cpelements/captiveportal-background.jpg

        That is incorrect. I guess the correct path are:
        captiveportal-logo.png -> /usr/local/captiveportal/captiveportal-logo.png
        captiveportal-background.jpg -> /usr/local/captiveportal/captiveportal-background.jpg

        Appart from that, it is perfectly possible to change logo using shell commands.

        1 Reply Last reply Reply Quote 0
        • luyoL
          luyo
          last edited by

          Hello, it's same

          /usr/local/captiveportal/captiveportal-logo.png -> /var/db/cpelements/captiveportal-logo.png
          /usr/local/captiveportal/captiveportal-background.jpg -> /var/db/cpelements/captiveportal-background.jpg

          When I change manually the images, I can't see changes...( mv o scp )

          F 1 Reply Last reply Reply Quote 0
          • F
            free4 Rebel Alliance @luyo
            last edited by

            @luyo it's not same

            the web server of the captive portal has a root to /usr/local/captiveportal/ so updating your files somewhere else probably won't work...

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.