1
0
Fork 0
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:
Sébastien Mennetrier 2022-05-18 15:03:56 +02:00
parent 7f1ff51686
commit a9a005adf7
2 changed files with 2 additions and 2 deletions

View file

@ -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
}
#=================================================

View file

@ -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