mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
update ldap script
This commit is contained in:
parent
987cd0e568
commit
c150540fea
3 changed files with 4 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
config_use_ldap=1,
|
config_use_ldap=1,
|
||||||
config_ldap_provider_url=\'localhost:389\',
|
config_ldap_provider_url=\'localhost:389\',
|
||||||
config_ldap_dn=\'uid=%s,ou=users,dc=yunohost,dc=org\',
|
config_ldap_dn=\'uid=%s,ou=users,dc=yunohost,dc=org\'
|
|
@ -169,7 +169,7 @@ ynh_systemd_action -a stop
|
||||||
|
|
||||||
|
|
||||||
#set database settings as per conf file
|
#set database settings as per conf file
|
||||||
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) WHERE ID=1\""
|
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) $(. <(echo -E echo $(<../conf/init_calibre_db_ldap_settings))) WHERE ID=1\""
|
||||||
eval sqlite3 $final_path/app.db "$conf"
|
eval sqlite3 $final_path/app.db "$conf"
|
||||||
|
|
||||||
conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user))) WHERE ID=1\""
|
conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user))) WHERE ID=1\""
|
||||||
|
|
|
@ -99,7 +99,8 @@ ynh_multimedia_addaccess $app
|
||||||
ynh_backup_if_checksum_is_different "$final_path/app.db"
|
ynh_backup_if_checksum_is_different "$final_path/app.db"
|
||||||
|
|
||||||
#set database settings as per conf file : restart server so that app.db is regenerated, then add new ldap settings
|
#set database settings as per conf file : restart server so that app.db is regenerated, then add new ldap settings
|
||||||
ynh_systemd_action -a restart -l "INFO in server: Starting Gevent server"
|
ynh_systemd_action -a stop
|
||||||
|
ynh_systemd_action -l "INFO in server: Starting Gevent server"
|
||||||
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_ldap_settings))) WHERE ID=1\""
|
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_ldap_settings))) WHERE ID=1\""
|
||||||
eval sqlite3 $final_path/app.db "$conf"
|
eval sqlite3 $final_path/app.db "$conf"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue