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

[dev.icinga.com #10126] setup config directory --config should use mkdir -p instead of mkdir() #1995

Closed
icinga-migration opened this issue Sep 9, 2015 · 3 comments
Labels
area/cli Affects the command line (icingacli) bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10126

Created by mfriedrich on 2015-09-09 15:12:41 +00:00

Assignee: elippmann
Status: Resolved (closed on 2015-12-21 10:13:34 +00:00)
Target Version: 2.1.1
Last Update: 2015-12-21 10:13:34 +00:00 (in Redmine)


/usr/local/icingaweb2 does not exist.

michaels-mbp:~ root# /usr/local/share/icingaweb2/bin/icingacli setup config directory --group icingaweb2 --config /usr/local/icingaweb2/etc
ERROR: Icinga\Exception\IcingaException in /usr/local/share/icingaweb2/library/Icinga/Cli/Command.php:130 with message: Can't create configuration directory /usr/local/icingaweb2/etc: mkdir(): No such file or directory

After manually creating the main directory, the cli command works.

michaels-mbp:~ root# mkdir /usr/local/icingaweb2
michaels-mbp:~ root# /usr/local/share/icingaweb2/bin/icingacli setup config directory --group icingaweb2 --config /usr/local/icingaweb2/etc
Successfully created configuration directory /usr/local/icingaweb2/etc

Changesets

2015-12-18 15:45:39 +00:00 by aklimov fd2901c

Setup: create config directory recursively like mkdir -p

refs #10126

2015-12-21 10:12:06 +00:00 by elippmann a14481a

CLI: Use a more restrict mode when creating the config directory resursively

refs #10126

2015-12-21 10:13:13 +00:00 by elippmann ed5c2c4

Merge branch 'bugfix/setup-config-directory-config-should-use-mkdir-p-instead-of-mkdir-10126'

fixes #10126
@icinga-migration
Copy link
Author

Updated by elippmann on 2015-12-18 15:17:01 +00:00

  • Status changed from New to Assigned
  • Assigned to set to aklimov
  • Target Version set to 2.1.1

@icinga-migration
Copy link
Author

Updated by aklimov on 2015-12-18 15:50:19 +00:00

  • Status changed from Assigned to Feedback
  • Assigned to changed from aklimov to elippmann

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-12-21 10:13:34 +00:00

  • Status changed from Feedback to Resolved
  • Done % changed from 0 to 100

Applied in changeset ed5c2c4.

@icinga-migration icinga-migration added bug Something isn't working area/cli Affects the command line (icingacli) labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.1.1 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Affects the command line (icingacli) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant