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

/usr/bin/samba.sh: line 160: $2: unbound variable #445

Open
alrepin opened this issue Aug 28, 2023 · 2 comments
Open

/usr/bin/samba.sh: line 160: $2: unbound variable #445

alrepin opened this issue Aug 28, 2023 · 2 comments

Comments

@alrepin
Copy link

alrepin commented Aug 28, 2023

My docker-compose file:

version: "3.3"
services:
  samba:
    container_name: samba
    image: dperson/samba
    ports:
      - "137:137/udp"
      - "138:138/udp"
      - "139:139/tcp"
      - "445:445/tcp"
    read_only: false
    tmpfs:
      - /tmp
    restart: unless-stopped
    stdin_open: true
    tty: true
    environment:
      - "PUID=1000"
      - "PGID=1000"
      - "TZ=${TZ}"
    env_file: .env
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 250M
#         pids: 1
        reservations:
          cpus: '0.35'
          memory: 240M
    volumes:
      - /home/srv:/srv
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    command:
    # -s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]" 
    # -s "name;/path;no;no;no;example1"
      -s "srv;/srv;yes;no;yes"
      -p

got error /usr/bin/samba.sh: line 160: $2: unbound variable

@euivanw
Copy link

euivanw commented Aug 31, 2023

Remove the " characters

@tyokyo320
Copy link

I had the same problem with k8s. I found that I set the wrong user name and password, its secret should be user; password form

# line 160
user() { local name="$1" passwd="$2" id="${3:-""}" group="${4:-""}" \

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

3 participants