Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension fails to install in root only environment (docker container) without sudo installed #59

Open
JackWilb opened this issue Aug 19, 2024 · 0 comments

Comments

@JackWilb
Copy link

The installation script seems to expect sudo to be installed, which it might not be in a minimal container with only a root user.

root@121f9f88f689:/app# id
uid=0(root) gid=0(root) groups=0(root)

root@121f9f88f689:/app# /root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh
The MySQL Shell Web Root Certificate required by the MySQL for VS Code extension will now be installed on your system.


The following script will be executed. Some operations will require the sudo password , please review at your own discretion:


    /root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh


The script will perform the following operations:


- Install the following requirements:
  - certutil
  - NSS User Database
- Install the MySQL Shell GUI certificate at the following locations:
* - NSS User Database


Do you want to continue [Y/n] ? 
Installing the certificate management utility: libnss3-tools
/root/.mysqlsh-gui/plugin_data/gui_plugin/web_certs/install.sh: line 26: sudo: command not found
Failed installing libnss3-tools
Press any key to continue...

Since I already have root permission, the install script shouldn't fail.

As a temporary work around, I installed sudo and finished the install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant