• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 524 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.
  • L
    luyo
    last edited by Mar 25, 2019, 10:05 PM

    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 Mar 25, 2019, 10:17 PM

      @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
      • L
        luyo
        last edited by Mar 28, 2019, 9:43 PM

        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 Mar 29, 2019, 6:30 AM Reply Quote 0
        • F
          free4 Rebel Alliance @luyo
          last edited by Mar 29, 2019, 6:30 AM

          @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
          2 out of 4
          • First post
            2/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received