blob: 9954c343521b5a180963d15066683d68600fec59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# This script is intended to be used sorely by overlayfs-create-dirs.service
# Usage: overlayfs-create-dirs.sh <LOWERDIR> <DATA_MOUNT_POINT>
lowerdir=$1
datamountpoint=$2
mkdir -p ${datamountpoint}/upper${lowerdir}
mkdir -p ${datamountpoint}/workdir${lowerdir}
if [ -d "$lowerdir" ]; then
chown $(stat -c "%U:%G" ${lowerdir}) ${datamountpoint}/upper${lowerdir}
fi
|