Initial setup

This commit is contained in:
aewens 2019-01-03 10:11:10 -06:00
parent f696948d1e
commit bcb79228a1
8 changed files with 16 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) <year> <owner> . All rights reserved.
Copyright (c) 2019 Austin Ewens . All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

0
bin/.gitkeep Normal file
View File

0
data/.gitkeep Normal file
View File

0
etc/ldap/.gitkeep Normal file
View File

0
etc/secrets/.gitkeep Normal file
View File

0
etc/skel/.gitkeep Normal file
View File

0
home/.gitkeep Normal file
View File

15
setup.sh Normal file
View File

@ -0,0 +1,15 @@
#!/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/