HomeClusterLabs Projects

ocf_mkstatedir: fix path check

Description

ocf_mkstatedir: fix path check

Check fails due to duble slashes in string comparison.

Path /var/run/apache2 is compared with /var/run//* giving the following error in the logs:

Dec 21 13:17:53 node1 apache(apache_/etc/apache2/apache2.conf)[826]: [868]: ERROR: cannot create /var/run/apache2 (does not start with /var/run/)

Details

Provenance
Valentin Vidić <vvidic@valentin-vidic.from.hr>Authored on Dec 21 2016, 10:04 AM
GitHub <noreply@github.com>Committed on Dec 21 2016, 10:04 AM
Parents
rRa58f8268d6c5: Merge pull request #899 from oalbrigt/specfile-requirements
Branches
Unknown
Tags
Unknown

Event Timeline