Fix default configuration delivered with the application

This commit is contained in:
Benjamin Renard 2020-05-06 14:54:10 +02:00
parent dea00a25d9
commit 1f24bdb531
2 changed files with 11 additions and 1 deletions

View file

@ -6,4 +6,5 @@ Alias /ldapsaisie /usr/share/ldapsaisie/public_html
php_flag register_globals Off
</IfModule>
Options -Indexes +FollowSymLinks
AllowOverride FileInfo
</Directory>

9
debian/rules vendored
View file

@ -13,9 +13,18 @@ override_dh_clean:
override_dh_install:
dh_install -X .gitignore -X .placefolder -X tmp
# Move local directory as /usr/local/share/ldapsaisie
# Note: a symbolic link will be install by dh_link
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie
# Remove all files in local directory
find $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie -type f -exec rm -f \{\} \;
# Change default log file path
sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
# Change default public_root_url
sed -i "s/^\(\s*'public_root_url' => \).*/\1'\/ldapsaisie\/',/" $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
# Make a copy of default config.inc.php to /usr/local/share/ldapsaisie/conf/config.inc.example.php (=/etc/ldapsaisie/local/conf/config.inc.php)
cp $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie/conf/config.inc.example.php
override_dh_usrlocal: