Checking if the current user has enough permissions to install YAMS
This commit is contained in:
parent
69cdea343b
commit
036f3fb1d1
4
docs.org
4
docs.org
@ -201,6 +201,10 @@ if [ ! -d "$install_directory" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -w "$install_directory" ]; then
|
||||||
|
send_error_message "The directory \"$install_directory\" is not writtable by the current user. Set the correct permissions or try a different directory" ❌
|
||||||
|
fi
|
||||||
|
|
||||||
filename="$install_directory/docker-compose.yaml"
|
filename="$install_directory/docker-compose.yaml"
|
||||||
custom_file_filename="$install_directory/docker-compose.custom.yaml"
|
custom_file_filename="$install_directory/docker-compose.custom.yaml"
|
||||||
env_file="$install_directory/.env"
|
env_file="$install_directory/.env"
|
||||||
|
@ -95,6 +95,10 @@ if [ ! -d "$install_directory" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -w "$install_directory" ]; then
|
||||||
|
send_error_message "The directory \"$install_directory\" is not writtable by the current user. Set the correct permissions or try a different directory" ❌
|
||||||
|
fi
|
||||||
|
|
||||||
filename="$install_directory/docker-compose.yaml"
|
filename="$install_directory/docker-compose.yaml"
|
||||||
custom_file_filename="$install_directory/docker-compose.custom.yaml"
|
custom_file_filename="$install_directory/docker-compose.custom.yaml"
|
||||||
env_file="$install_directory/.env"
|
env_file="$install_directory/.env"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user