1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grav_ynh.git synced 2024-09-03 19:16:01 +02:00

bin/gpm has to be run from $final_path

This commit is contained in:
tituspijean 2021-04-05 13:57:11 +02:00
parent a3ffdb415e
commit 8472da0efe
2 changed files with 9 additions and 3 deletions

View file

@ -106,7 +106,9 @@ find "$final_path" -type d -exec chmod +s {} \;
#=================================================
ynh_script_progression --message="Installing and configuring LDAP plugin..." --weight=1
exec_as $app php${YNH_PHP_VERSION} "$final_path/bin/gpm" install login-ldap --all-yes --no-interaction
pushd "$final_path"
exec_as $app php${YNH_PHP_VERSION} bin/gpm install login-ldap --no-interaction
popd
exec_as $app mkdir -p "$final_path/user/config/plugins/login-ldap"
exec_as $app touch "$final_path/user/accounts/admin.yaml"

View file

@ -142,14 +142,18 @@ find "$final_path" -type d -exec chmod +s {} \;
#=================================================
ynh_script_progression --message="Updating all plugins..." --weight=1
yes N | ynh_exec_warn_less exec_as $app php${YNH_PHP_VERSION} $final_path/bin/gpm update --all-yes --no-interaction
pushd "$final_path"
yes N | ynh_exec_warn_less exec_as $app php${YNH_PHP_VERSION} bin/gpm update --all-yes --no-interaction
popd
#=================================================
# INSTALL LDAP PLUGIN
#=================================================
ynh_script_progression --message="Installing and configuring LDAP plugin..." --weight=3
exec_as $app php${YNH_PHP_VERSION} "$final_path/bin/gpm" install login-ldap --all-yes --no-interaction
pushd "$final_path"
exec_as $app php${YNH_PHP_VERSION} bin/gpm install login-ldap --no-interaction
popd
exec_as $app mkdir -p "$final_path/user/config/plugins/login-ldap"
exec_as $app touch "$final_path/user/accounts/admin.yaml"