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

Custom user with dash generate an error. #33

Open
keyandcloud opened this issue Oct 18, 2019 · 1 comment
Open

Custom user with dash generate an error. #33

keyandcloud opened this issue Oct 18, 2019 · 1 comment

Comments

@keyandcloud
Copy link

keyandcloud commented Oct 18, 2019

Hello, After adding the user to the database, I get an error when starting nanobox. In my case i can not use another name.

Error: '/data/var/home/gonano/.bashrc: line 28: export: `DATA_MYSQL_KAC-USER_PASS=ALD91fkYJn': not a valid identifier'
nanobox run
...
/data/var/home/gonano/.bashrc: line 28: export: `DATA_MYSQL_KAC-USER_PASS=ALD91fkYJn': not a valid identifier
bash: export: `DATA_MYSQL_KAC-USER_PASS=ALD91fkYJn': not a valid identifier

My configuration

data.mysql:
  image: nanobox/mysql:5.6
  config:
    users:
      - username: root
        meta:
          privileges:
            - privilege: ALL PRIVILEGES
              'on': "*.*"
              with_grant: true
      - username: kac-user
@danhunsaker
Copy link

Hyphens aren't valid characters in environment variable names, so you won't be able to use them in your DB's username, or anywhere else that generates an evar name.

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

2 participants