directory/setup.sh

15 lines
398 B
Bash

#!/bin/bash
mkdir -p /center/{bin,data,etc,home}
cp bin/* /center/bin/
cp data/* /center/data/
cp etc/* /center/etc/
cp home/* /center/home/
chmod 700 /center/bin
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/bin/
cp /tmp/ldap-users/etc/* /center/etc/ldap/