new config file structure
This commit is contained in:
parent
58648d58ea
commit
19be66ce58
|
@ -8,21 +8,21 @@ db_version 2.0 || [ $? -lt 30 ]
|
|||
cd /usr/share/ldap-account-manager/config-samples/profiles
|
||||
files=`ls -a default.*`
|
||||
for file in $files; do
|
||||
if [ ! -f /var/lib/ldap-account-manager/config/profiles/$file ]; then
|
||||
cp $file /var/lib/ldap-account-manager/config/profiles/$file
|
||||
if [ ! -f /var/lib/ldap-account-manager/config/templates/profiles/$file ]; then
|
||||
cp $file /var/lib/ldap-account-manager/config/templates/profiles/$file
|
||||
fi
|
||||
done
|
||||
cd /usr/share/ldap-account-manager/config-samples/pdf
|
||||
files=`ls -a default.*`
|
||||
for file in $files; do
|
||||
if [ ! -f /var/lib/ldap-account-manager/config/pdf/$file ]; then
|
||||
cp $file /var/lib/ldap-account-manager/config/pdf/$file
|
||||
if [ ! -f /var/lib/ldap-account-manager/config/templates/pdf/$file ]; then
|
||||
cp $file /var/lib/ldap-account-manager/config/templates/pdf/$file
|
||||
fi
|
||||
done
|
||||
cd /usr/share/ldap-account-manager/config-samples/pdf/logos
|
||||
cd /usr/share/ldap-account-manager/config-samples/templates/pdf/logos
|
||||
files=`ls -a *.jpg`
|
||||
for file in $files; do
|
||||
cp $file /var/lib/ldap-account-manager/config/pdf/logos/$file
|
||||
cp $file /var/lib/ldap-account-manager/config/templates/pdf/logos/$file
|
||||
done
|
||||
cd /usr/share/ldap-account-manager/config-samples/selfService
|
||||
files=`ls -a default.*`
|
||||
|
|
|
@ -29,11 +29,11 @@ install:
|
|||
install -D --mode=644 config/lam.conf_sample debian/ldap-account-manager/var/lib/ldap-account-manager/config/lam.conf_sample
|
||||
install -D --mode=644 config/config.cfg_sample debian/ldap-account-manager/var/lib/ldap-account-manager/config/config.cfg_sample
|
||||
install -d --mode=755 debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples
|
||||
cp -r config/profiles debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
|
||||
install -D --mode=644 config/profiles/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/profiles/.htaccess
|
||||
cp -r config/pdf debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
|
||||
install -D --mode=644 config/pdf/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/pdf/.htaccess
|
||||
install -D --mode=644 config/pdf/logos/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/pdf/logos/.htaccess
|
||||
cp -r config/templates/profiles debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
|
||||
install -D --mode=644 config/profiles/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/templates/profiles/.htaccess
|
||||
cp -r config/templates/pdf debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
|
||||
install -D --mode=644 config/pdf/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/templates/pdf/.htaccess
|
||||
install -D --mode=644 config/pdf/logos/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/templates/config/pdf/logos/.htaccess
|
||||
cp -r config/selfService debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
|
||||
install -D --mode=644 config/selfService/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/selfService/.htaccess
|
||||
cp -r graphics debian/ldap-account-manager/usr/share/ldap-account-manager/
|
||||
|
|
Loading…
Reference in New Issue