mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
keep $final_path/plugins/discourse-ldap-auth/config/settings.yml
This commit is contained in:
parent
41ec405191
commit
571089a443
1 changed files with 5 additions and 0 deletions
|
@ -161,11 +161,16 @@ then
|
|||
)
|
||||
cp -Rp $tmpdir/log $final_path
|
||||
cp -p $tmpdir/discourse.conf $final_path/config
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
|
||||
# Install LDAP plugin
|
||||
tmpdir=$(mktemp -d)
|
||||
cp -Rp "$final_path/plugins/discourse-ldap-auth/config/settings.yml" $tmpdir
|
||||
ynh_secure_remove --file="$final_path/plugins/discourse-ldap-auth"
|
||||
mkdir -p "$final_path/plugins/discourse-ldap-auth"
|
||||
ynh_setup_source --dest_dir="$final_path/plugins/discourse-ldap-auth" --source_id=ldap-auth
|
||||
cp -p $tmpdir/settings.yml $final_path/plugins/discourse-ldap-auth/config
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
fi
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue