mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Protect more path on ynh secure remove
This commit is contained in:
parent
b79395dfe0
commit
69e6a7aaa5
1 changed files with 1 additions and 1 deletions
|
@ -843,7 +843,7 @@ ynh_get_debian_release() {
|
||||||
_acceptable_path_to_delete() {
|
_acceptable_path_to_delete() {
|
||||||
local file=$1
|
local file=$1
|
||||||
|
|
||||||
local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*})
|
local forbidden_paths=$(ls -d / /* /{var,home,usr}/* /etc/{default,sudoers.d,yunohost,cron*} /etc/yunohost/{apps,domains,hook.d} /opt/yunohost)
|
||||||
|
|
||||||
# Legacy : A couple apps still have data in /home/$app ...
|
# Legacy : A couple apps still have data in /home/$app ...
|
||||||
if [[ -n "${app:-}" ]]
|
if [[ -n "${app:-}" ]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue