directory/setup.sh

17 lines
430 B
Bash

#!/bin/bash
mkdir -p /center/{bin,data,etc,home,sbin}
cp bin/* /center/bin/
cp data/* /center/data/
cp etc/* /center/etc/
cp home/* /center/home/
cp sbin/* /center/sbin/
chmod 700 /center/sbin
chmod -R 700 /center/etc/ldap
chmod -R 700 /center/etc/secrets
chmod -R 755 /center/etc/skel
cd /tmp
git clone https://tildegit.org/center/ldap-users.git
cp /tmp/ldap-users/bin/* /center/sbin/
cp /tmp/ldap-users/etc/* /center/etc/ldap/