Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folders not found inside /etc/nginx in RHEL9 #348

Open
rfinotti opened this issue Apr 4, 2024 · 0 comments
Open

folders not found inside /etc/nginx in RHEL9 #348

rfinotti opened this issue Apr 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rfinotti
Copy link

rfinotti commented Apr 4, 2024

Is your feature request related to a problem? Please describe.
During Nginx installation in RHEL OS, nginx will not create the SITES-AVAILABLE and SITES-ENABLED folders inside ../etc/nginx/, hence the NGINX-UI will fail when a new site is created as it will not find those folders.

Describe the solution you'd like
I would suggest adding the following piece of code to the install.sh

nginx_dir="/etc/nginx"
directories=("sites-available" "sites-enabled")

for dir_name in "${directories[@]}"; do
    directory="$nginx_dir/$dir_name"
    if [ ! -d "$directory" ]; then
        echo "Creating $dir_name directory..."
        mkdir -p "$directory"
    fi
done
@rfinotti rfinotti added the enhancement New feature or request label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant