#!/bin/sh
set -e


useradd -M sysrepo-user1
useradd -M sysrepo-user2
useradd -M sysrepo-user3

groupadd sysrepo-users

usermod -a -G sysrepo-users sysrepo-user1
usermod -a -G sysrepo-users sysrepo-user2
usermod -a -G sysrepo-users sysrepo-user3

chmod o+x /home
chmod o+x /home/travis
chmod g+rw,o-rw repository/data/*
chmod g+ws repository/data
chgrp sysrepo-users repository/data/*
chgrp sysrepo-users repository/data

#!/bin/sh
set -e


useradd -M sysrepo-user1
useradd -M sysrepo-user2
useradd -M sysrepo-user3

groupadd sysrepo-users

usermod -a -G sysrepo-users sysrepo-user1
usermod -a -G sysrepo-users sysrepo-user2
usermod -a -G sysrepo-users sysrepo-user3

chmod o+x /home
chmod o+x /home/travis
chmod g+rw,o-rw repository/data/*
chmod g+ws repository/data
setfacl -d -m g::rw repository/data
chgrp sysrepo-users repository/data/*
chgrp sysrepo-users repository/data

Set default permissions for newly created data files.
Set default permissions for newly created data files.
