Fix wrong PATH for chown

The chown command is installed in /bin and /usr/bin/, not /usr/sbin.

Change-Id: I03d6bc361726f0eee9c9cebac85f38c317b52b99
This commit is contained in:
Takashi Kajinami
2023-11-15 21:35:09 +09:00
parent c9161c04d7
commit 13c449f012

View File

@@ -54,7 +54,7 @@ define swift::storage::mount(
# when the disk device is not mounted
exec { "fix_mountpoint_permissions_${name}":
command => "chown -R root:root ${mnt_base_dir}/${name}",
path => ['/usr/sbin', '/bin'],
path => ['/usr/bin', '/bin'],
before => Anchor['swift::config::end'],
unless => "grep ${mnt_base_dir}/${name} /etc/mtab",
}
@@ -79,7 +79,7 @@ define swift::storage::mount(
exec { "fix_mount_permissions_${name}":
command => "chown -R ${user}:${group} ${mnt_base_dir}/${name}",
path => ['/usr/sbin', '/bin'],
path => ['/usr/bin', '/bin'],
refreshonly => true,
before => Anchor['swift::config::end'],
}