Thread: pgadmin setup without /usr/pgadmin4/bin/setup-web.sh
Hi, I am about to set up pgadmin 4 in a lxc container and followed the instructions for the web only mode over here: https://www.pgadmin.org/download/pgadmin-4-apt/ The last part is interactive and I would like to avoid that. Is there an alternative to using /usr/pgadmin4/bin/setup-web.sh ? I would prefer to just copy some pre-configured config files into the container. Which would I need to copy? kind regards, Jo
Hi
On Sat, Feb 13, 2021 at 12:10 PM Jo Drop <jo-dropbox@web.de> wrote:
Hi,
I am about to set up pgadmin 4 in a lxc container and followed the
instructions for the web only mode over here:
https://www.pgadmin.org/download/pgadmin-4-apt/
The last part is interactive and I would like to avoid that.
Is there an alternative to using /usr/pgadmin4/bin/setup-web.sh ? I
would prefer to just copy some pre-configured config files into the
container.
Which would I need to copy?
The setup script doesn't create any configuration files you can just copy - it enables Apache HTTPD and some required modules, and if you're on Redhat it will run some SELinux commands.
You can avoid the interactivity by setting PGADMIN_SETUP_EMAIL and PGADMIN_SETUP_PASSWORD in the environment to an appropriate email address and password for the initial user, and then running the script with the -y option on the command line.
Hi,
thank you very much, I will try that right away.
kind regards,
Jo
Am 14.02.21 um 17:12 schrieb Dave Page:
HiOn Sat, Feb 13, 2021 at 12:10 PM Jo Drop <jo-dropbox@web.de> wrote:Hi,
I am about to set up pgadmin 4 in a lxc container and followed the
instructions for the web only mode over here:
https://www.pgadmin.org/download/pgadmin-4-apt/
The last part is interactive and I would like to avoid that.
Is there an alternative to using /usr/pgadmin4/bin/setup-web.sh ? I
would prefer to just copy some pre-configured config files into the
container.
Which would I need to copy?The setup script doesn't create any configuration files you can just copy - it enables Apache HTTPD and some required modules, and if you're on Redhat it will run some SELinux commands.You can avoid the interactivity by setting PGADMIN_SETUP_EMAIL and PGADMIN_SETUP_PASSWORD in the environment to an appropriate email address and password for the initial user, and then running the script with the -y option on the command line.--
Hi,
I tried to do it with environment variables but it still asks, am I missing something?
root@pgadmin:~# PGADMIN_SETUP_PASSWORD="123"
root@pgadmin:~# PGADMIN_SETUP_EMAIL="jo-drop@XXX.xx"
root@pgadmin:~# /usr/pgadmin4/bin/setup-web.sh --yes
Running in non-interactive mode...
Setting up pgAdmin 4 in web mode on a Debian platform...
Creating configuration database...
NOTE: Configuring authentication for SERVER mode.
Enter the email address and password to use for the initial pgAdmin user account:
Email address:
root@pgadmin:~# PGADMIN_SETUP_EMAIL="jo-drop@XXX.xx"
root@pgadmin:~# /usr/pgadmin4/bin/setup-web.sh --yes
Running in non-interactive mode...
Setting up pgAdmin 4 in web mode on a Debian platform...
Creating configuration database...
NOTE: Configuring authentication for SERVER mode.
Enter the email address and password to use for the initial pgAdmin user account:
Email address:
Am 14.02.21 um 19:42 schrieb Jo Drop:
Hi,thank you very much, I will try that right away.kind regards,JoAm 14.02.21 um 17:12 schrieb Dave Page:HiOn Sat, Feb 13, 2021 at 12:10 PM Jo Drop <jo-dropbox@web.de> wrote:Hi,
I am about to set up pgadmin 4 in a lxc container and followed the
instructions for the web only mode over here:
https://www.pgadmin.org/download/pgadmin-4-apt/
The last part is interactive and I would like to avoid that.
Is there an alternative to using /usr/pgadmin4/bin/setup-web.sh ? I
would prefer to just copy some pre-configured config files into the
container.
Which would I need to copy?The setup script doesn't create any configuration files you can just copy - it enables Apache HTTPD and some required modules, and if you're on Redhat it will run some SELinux commands.You can avoid the interactivity by setting PGADMIN_SETUP_EMAIL and PGADMIN_SETUP_PASSWORD in the environment to an appropriate email address and password for the initial user, and then running the script with the -y option on the command line.--
Hi
On Mon, Feb 15, 2021 at 9:41 AM Jo Drop <jo-dropbox@web.de> wrote:
Hi,I tried to do it with environment variables but it still asks, am I missing something?root@pgadmin:~# PGADMIN_SETUP_PASSWORD="123"
root@pgadmin:~# PGADMIN_SETUP_EMAIL="jo-drop@XXX.xx"
root@pgadmin:~# /usr/pgadmin4/bin/setup-web.sh --yes
Running in non-interactive mode...
Setting up pgAdmin 4 in web mode on a Debian platform...
Creating configuration database...
NOTE: Configuring authentication for SERVER mode.
Enter the email address and password to use for the initial pgAdmin user account:
Email address:
You need to export the variables (that's how our container does it), or run it all from one command, e.g.
root@pgadmin:~# PGADMIN_SETUP_PASSWORD=abc123 PGADMIN_SETUP_EMAIL=jo-drop@XXX.xx /usr/pgadmin4/bin/setup-web.sh --yes
Am 14.02.21 um 19:42 schrieb Jo Drop:Hi,thank you very much, I will try that right away.kind regards,JoAm 14.02.21 um 17:12 schrieb Dave Page:HiOn Sat, Feb 13, 2021 at 12:10 PM Jo Drop <jo-dropbox@web.de> wrote:Hi,
I am about to set up pgadmin 4 in a lxc container and followed the
instructions for the web only mode over here:
https://www.pgadmin.org/download/pgadmin-4-apt/
The last part is interactive and I would like to avoid that.
Is there an alternative to using /usr/pgadmin4/bin/setup-web.sh ? I
would prefer to just copy some pre-configured config files into the
container.
Which would I need to copy?The setup script doesn't create any configuration files you can just copy - it enables Apache HTTPD and some required modules, and if you're on Redhat it will run some SELinux commands.You can avoid the interactivity by setting PGADMIN_SETUP_EMAIL and PGADMIN_SETUP_PASSWORD in the environment to an appropriate email address and password for the initial user, and then running the script with the -y option on the command line.--