mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
limit config visibility to /etc and /var/lib
This commit is contained in:
parent
a1b3aa3a84
commit
67a0e8d108
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ if [ ! -z "$src_file" ]; then
|
||||||
echo "Error: invalid source path $src_file"
|
echo "Error: invalid source path $src_file"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
spath=$(echo "$rpath" |egrep "/etc|/var/lib")
|
||||||
|
if [ -z "$spath" ]; then
|
||||||
|
echo "Error: invalid source path $src_file"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reading conf
|
# Reading conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue