kolla/docker/swift/swift-rsyncd/extend_start.sh
Martin Chlumsky 2d122afaf9 swift-rsyncd: don't recursively chown /srv/node at startup
Instead of doing a recursive chown on /srv/node, chown only /srv/node
and any immediate subdirectory under /srv/node.

Change-Id: I8fd93fa77ba9fc63910360300b8783a34bd4e6d5
Closes-Bug: #1851169
2019-11-05 09:12:46 -05:00

5 lines
116 B
Bash

#!/bin/bash
sudo find /srv/node/ -maxdepth 1 -type d -execdir chown swift:swift {} \+
mkdir -p /var/lib/swift/lock