Automatic configuration

#1
Hello! We need to setup OLS in docker, but to do it automatically, with already running site.
So, is there some way to set admin name\password via one line? I mea, kinda this way - cd /usr/local/lsws/admin/misc && ./admpass.sh "admin" "pass" "pass"
And also is there the way to delete localhost and automatically add our domain.
 
#2
Seems, that this should work:

su -s /bin/bash lsadm -c echo "adminlogin:$(/usr/local/lsws/admin/fcgi-bin/admin_php -q /usr/local/lsws/admin/misc/htpasswd.php password)" > /usr/local/lsws/admin/conf/htpasswd

But it doesn't
 
Top