diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-10-25 23:06:22 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-10-25 23:06:22 -0300 |
commit | 036f3fb1d1655197baf45a513e4c7ee882fac781 (patch) | |
tree | 14b0b1488dce6ff12a59fda3b7ac5b91ceaa64f3 | |
parent | 69cdea343bd48743ee91352659a69abafcbf9583 (diff) |
Checking if the current user has enough permissions to install YAMS
-rw-r--r-- | docs.org | 4 | ||||
-rw-r--r-- | install.sh | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -201,6 +201,10 @@ if [ ! -d "$install_directory" ]; then 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" custom_file_filename="$install_directory/docker-compose.custom.yaml" env_file="$install_directory/.env" @@ -95,6 +95,10 @@ if [ ! -d "$install_directory" ]; then 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" custom_file_filename="$install_directory/docker-compose.custom.yaml" env_file="$install_directory/.env" |