Change captive portal images via cli ( ssh )



  • 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


  • Rebel Alliance

    @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.



  • 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 )


  • Rebel Alliance

    @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...


Log in to reply