mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-20 09:09:05 +01:00
Fix default configuration delivered with the application
This commit is contained in:
parent
dea00a25d9
commit
1f24bdb531
2 changed files with 11 additions and 1 deletions
1
debian/conf/apache.conf
vendored
1
debian/conf/apache.conf
vendored
|
@ -6,4 +6,5 @@ Alias /ldapsaisie /usr/share/ldapsaisie/public_html
|
||||||
php_flag register_globals Off
|
php_flag register_globals Off
|
||||||
</IfModule>
|
</IfModule>
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
|
AllowOverride FileInfo
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
9
debian/rules
vendored
9
debian/rules
vendored
|
@ -13,9 +13,18 @@ override_dh_clean:
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
dh_install -X .gitignore -X .placefolder -X tmp
|
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
|
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 \{\} \;
|
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
|
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
|
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:
|
override_dh_usrlocal:
|
||||||
|
|
Loading…
Reference in a new issue