Add ad-schema/*.txt and utils to the installmisc.sh
authorTimur I. Bakeyev <timur@FreeBSD.org>
Sun, 12 Jul 2009 23:36:08 +0000 (23:36 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Jul 2009 23:23:35 +0000 (09:23 +1000)
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.

source4/script/installmisc.sh

index 2bd34b119f34483929616da1f68be2cfe2f1723a..0666ae1adefb4d9b5e73caa5904f2eada34f8933 100755 (executable)
@@ -8,11 +8,15 @@ 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/provision-backend $SETUPDIR || exit 1
-cp setup/provision $SETUPDIR || exit 1
-cp setup/newuser $SETUPDIR || exit 1
 cp setup/*.inf $SETUPDIR || exit 1
 cp setup/*.ldif $SETUPDIR || exit 1
 cp setup/*.reg $SETUPDIR || exit 1