mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
RACK911LABS.COM: symlink check
This commit is contained in:
parent
a21ecd0ad0
commit
4f4cc763a7
4 changed files with 15 additions and 0 deletions
|
@ -287,6 +287,13 @@ is_hash_valid() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Check if directory is a symlink
|
||||
is_dir_symlink() {
|
||||
if [[ -L "$1" ]]; then
|
||||
check_result $E_FORBIDEN "$1 directory is a symlink"
|
||||
fi
|
||||
}
|
||||
|
||||
# Get object value
|
||||
get_object_value() {
|
||||
object=$(grep "$2='$3'" $USER_DATA/$1.conf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue