mirror of
https://github.com/YunoHost-Apps/redmine_ynh.git
synced 2024-09-03 20:16:16 +02:00
Adding default LDAP configuration
This commit is contained in:
parent
1f26310dc3
commit
2ff3ad1a3f
2 changed files with 16 additions and 0 deletions
13
conf/db-ldap.sql
Normal file
13
conf/db-ldap.sql
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
INSERT INTO public.auth_sources(type, name, host, port, base_dn, attr_login, attr_firstname, attr_lastname, attr_mail, onthefly_register, filter) VALUES (
|
||||||
|
'AuthSourceLdap',
|
||||||
|
'yunohost',
|
||||||
|
'localhost',
|
||||||
|
389,
|
||||||
|
'ou=users,dc=yunohost,dc=org',
|
||||||
|
'uid',
|
||||||
|
'sn',
|
||||||
|
'givenName',
|
||||||
|
'mail',
|
||||||
|
t,
|
||||||
|
'(&(objectclass=posixAccount)(permission=cn=redmine.main,ou=permission,dc=yunohost,dc=org))'
|
||||||
|
)
|
|
@ -127,6 +127,8 @@ ynh_add_config --template="../conf/configuration.yml.example" --destination="$fi
|
||||||
chmod 400 "$final_path/config/configuration.yml"
|
chmod 400 "$final_path/config/configuration.yml"
|
||||||
chown $app:$app "$final_path/config/configuration.yml"
|
chown $app:$app "$final_path/config/configuration.yml"
|
||||||
|
|
||||||
|
ynh_add_config --template="../conf/db-ldap.sql" --destination="$final_path/config/db-ldap.sql"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BUILD APP
|
# BUILD APP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -140,6 +142,7 @@ pushd $final_path
|
||||||
bundle install
|
bundle install
|
||||||
ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake generate_secret_token RAILS_ENV=production
|
||||||
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
ynh_exec_warn_less bundle exec rake db:migrate RAILS_ENV=production
|
||||||
|
ynh_psql_connect_as $db_user $db_pwd $db_name < $final_path/config/db-ldap.sql
|
||||||
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
|
#ynh_exec_warn_less bundle exec rake redmine:load_default_data RAILS_ENV=production
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue