mirror of
https://github.com/YunoHost-Apps/grav_ynh.git
synced 2024-09-03 19:16:01 +02:00
Directly install LDAP plugin, no need for GPM
This commit is contained in:
parent
8a91ad7816
commit
c3c84311cc
2 changed files with 12 additions and 3 deletions
7
conf/ldap.src
Normal file
7
conf/ldap.src
Normal file
|
@ -0,0 +1,7 @@
|
|||
SOURCE_URL=https://github.com/trilbymedia/grav-plugin-login-ldap/archive/refs/tags/1.0.2.zip
|
||||
SOURCE_SUM=BDAEA681730E800AB8EDA7EDF56D772BACA1DE783D0F8C321AC2EC86D82628CA
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
SOURCE_FILENAME=ldap.zip
|
||||
SOURCE_EXTRACT=true
|
|
@ -104,12 +104,14 @@ find "$final_path" -type d -exec chmod +s {} \;
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing and configuring LDAP plugin..." --weight=1
|
||||
|
||||
pushd "$final_path"
|
||||
exec_as $app php${YNH_PHP_VERSION} bin/gpm install login-ldap --no-interaction
|
||||
popd
|
||||
# Download LDAP source
|
||||
ynh_setup_source --dest_dir="$final_path/user/plugins/login-ldap" --source_id="ldap"
|
||||
|
||||
# Preparing config
|
||||
exec_as $app mkdir -p "$final_path/user/config/plugins/login-ldap"
|
||||
exec_as $app touch "$final_path/user/accounts/admin.yaml"
|
||||
|
||||
# Setting up config
|
||||
ynh_add_config --template="../conf/login-ldap.yaml" --destination="$final_path/user/config/plugins/login-ldap.yaml"
|
||||
chown $app:$app "$final_path/user/config/plugins/login-ldap.yaml"
|
||||
chmod 640 "$final_path/user/config/plugins/login-ldap.yaml"
|
||||
|
|
Loading…
Reference in a new issue