1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

Fix install script

This commit is contained in:
anmol 2019-03-12 00:33:01 +05:30
parent 6e354edc75
commit 8107638297
3 changed files with 13 additions and 23 deletions

11
conf/addon.config.php Normal file
View file

@ -0,0 +1,11 @@
<?php
// Addon configuration
// Copy this configuration file to addon.config.php and edit it if you want to configure addons, see below example for the twitter addon
return [
'ldapauth' => [
'ldap_server' => 'localhost',
'ldap_searchdn' => 'ou=users,dc=yunohost,dc=org',
'ldap_userattr' => 'uid',
'ldap_autocreateaccount_emailattribute' => 'mail',
],
];

View file

@ -1,21 +0,0 @@
<?php return <<<INI
; Copy this configuration file to addon.ini.php and edit it if you want to configure addons, see below example for the twitter addon
;[twitter]
;consumerkey = localhost
;consumersecret = mysqlusername
[system]
addon = ldapauth
[ldapauth]
ldap_server = 'localhost'
ldap_searchdn = 'ou=users,dc=yunohost,dc=org'
ldap_userattr = 'uid'
ldap_autocreateaccount = 'true'
ldap_autocreateaccount_emailattribute = 'mail'
INI;
// Keep this line

View file

@ -117,7 +117,7 @@ ynh_replace_string "REGISTER_OPEN" "REGISTER_CLOSED" "$final_path/config/local.c
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "$final_path/database.sql"
# addon config
sudo cp "../conf/addon.ini.php" "$final_path/config/."
sudo cp "../conf/addon.config.php" "$final_path/config/."
#=================================================
# CREATE DEDICATED USER
@ -151,7 +151,7 @@ sudo cp ../conf/poller-cron /etc/cron.d/$app
#=================================================
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum "$final_path/config/local.ini.php"
ynh_store_file_checksum "$final_path/config/local.config.php"
# Run composer
(cd $final_path && sudo php bin/composer.phar install)