mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Install other useful scripts from the setup/ directory, not only provisioning ones. Also install setup/ad-schema/*.txt files to the SETUPDIR. These are necessary for 'provision' to work properly.
32 lines
892 B
Bash
Executable File
32 lines
892 B
Bash
Executable File
#!/bin/sh
|
|
# install miscellaneous files
|
|
|
|
SRCDIR="$1"
|
|
SETUPDIR="$2"
|
|
|
|
cd $SRCDIR || exit 1
|
|
|
|
echo "Installing setup templates"
|
|
mkdir -p $SETUPDIR || exit 1
|
|
mkdir -p $SETUPDIR/ad-schema || exit 1
|
|
cp setup/ad-schema/*.txt $SETUPDIR/ad-schema || exit 1
|
|
for p in enableaccount newuser provision provision-backend setexpiry setpassword
|
|
do
|
|
chmod 0555 setup/$p
|
|
cp setup/$p $SETUPDIR || exit 1
|
|
done
|
|
cp setup/schema-map-* $SETUPDIR || exit 1
|
|
cp setup/DB_CONFIG $SETUPDIR || exit 1
|
|
cp setup/*.inf $SETUPDIR || exit 1
|
|
cp setup/*.ldif $SETUPDIR || exit 1
|
|
cp setup/*.reg $SETUPDIR || exit 1
|
|
cp setup/*.zone $SETUPDIR || exit 1
|
|
cp setup/*.conf $SETUPDIR || exit 1
|
|
cp setup/*.php $SETUPDIR || exit 1
|
|
cp setup/*.txt $SETUPDIR || exit 1
|
|
cp setup/provision.smb.conf.dc $SETUPDIR || exit 1
|
|
cp setup/provision.smb.conf.member $SETUPDIR || exit 1
|
|
cp setup/provision.smb.conf.standalone $SETUPDIR || exit 1
|
|
|
|
exit 0
|