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.jpgChanges are applied only from web.
Is this possible ?Thanks
-
@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.jpgThat 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.jpgAppart 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.jpgWhen I change manually the images, I can't see changes...( mv o scp )
-
@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...