Gerrit: Ensure /opt/lib exists if used
/opt/lib/git is about to become the new default path for the local replica. If it is used, we should make sure /opt/lib exists. Change-Id: I4accdfefce9ef4f98c435c11f08fded1481e3ee6
This commit is contained in:
parent
3c2948637a
commit
36b0b78550
@ -189,6 +189,14 @@ class gerrit(
|
||||
owner => 'gerrit2',
|
||||
}
|
||||
|
||||
if ((!defined(File['/opt/lib']))
|
||||
and ($replicate_path =~ /^\/opt\/lib\/.*$/)) {
|
||||
file { '/opt/lib':
|
||||
ensure => directory,
|
||||
owner => root,
|
||||
}
|
||||
}
|
||||
|
||||
# Prepare gerrit directories. Even though some of these would be created
|
||||
# by the init command, we can go ahead and create them now and populate them.
|
||||
# That way the config files are already in place before init runs.
|
||||
|
Loading…
Reference in New Issue
Block a user