1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Ignore root partition on mount as it's statically defined

This commit is contained in:
Josué Tille 2024-04-16 21:28:33 +02:00
parent 274e897bd6
commit 42e9bdef0c
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -71,7 +71,7 @@ load_vars() {
grep 'Jail list:' | sed 's/.*Jail list://' | sed 's/,//g')"
readonly mount_parts="$(mount |
cut -d' ' -f3 |
grep -E -v '^/run|^/dev|^/proc|^/sys|^/snap')"
grep -E -v '^/run|^/dev|^/proc|^/sys|^/snap|^/$')"
app_data_dirs="$(echo /home/yunohost.app/*)"
readonly home_user_dirs="$(echo /home/* | home_dir_filter)"
readonly net_gateway="$(ip --json route show default | jq -r '.[0].dev')"