mirror of
https://github.com/YunoHost-Apps/humhub_ynh.git
synced 2024-09-03 19:26:11 +02:00
Replace rm-rf by ynh_secure_remove
This commit is contained in:
parent
7f1ff51686
commit
a9a005adf7
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ enable_sso() {
|
|||
pushd $final_path/protected/
|
||||
php${YNH_PHP_VERSION} yii module/enable auth-basic
|
||||
popd
|
||||
rm -rf $tmp_auth_basic_module
|
||||
ynh_secure_remove $tmp_auth_basic_module
|
||||
}
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -90,7 +90,7 @@ then
|
|||
else
|
||||
current_version=$(cat $final_path/$HUMHUB_AUTH_BASIC_PATH/module.json | jq -j '.version')
|
||||
if [ "$current_version" != "$HUMHUB_AUTH_BASIC_VERSION" ]; then
|
||||
rm -rf $final_path/$HUMHUB_AUTH_BASIC_PATH
|
||||
ynh_secure_remove $final_path/$HUMHUB_AUTH_BASIC_PATH
|
||||
enable_sso
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue