8000 idoit-jobs: Error on using passwords with special characters · Issue #7 · i-doit/scripts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
idoit-jobs: Error on using passwords with special characters #7
Open
@ghost

Description

Expected behavior

Normal execution of idoit-jobs.

Actual behavior

If the password configured in /etc/i-doit/i-doit.sh contains a character you'd normally escape, the shell prints an error about that character being unexpected.

Steps to reproduce the behavior

  1. In i-doit.sh, set a password with a character you'd normally escape. For me it was a ' ( '.
  2. Execute idoit-jobs.

Environment

Question Answer
i-doit version 1.13
i-doit edition pro
Operating system (OS) Ubuntu
OS version 18.04 LTS

Server logs

$ idoit-jobs
Perform important background tasks for i-doit
Archive i-doit logbook
/usr/local/bin/idoit-jobs: eval: line 49: syntax error near unexpected token `('
/usr/local/bin/idoit-jobs: eval: line 49: `sudo -u www-data /usr/local/bin/idoit logbook-archive --user test --password H8(8G6muBkywzVWhUOlR --tenantId 1'
Command 'logbook-archive' failed
Operation failed. Please check what is wrong and try again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0