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

nginx shared folder is never created #254

Closed
AlexVonB opened this issue Jul 15, 2021 · 1 comment
Closed

nginx shared folder is never created #254

AlexVonB opened this issue Jul 15, 2021 · 1 comment

Comments

@AlexVonB
Copy link

Hi all!

Problem

The nginx config file is not accessible in the /shared volume. This is related to #219 (comment) as it would enable us to update the nginx config file ourselves.

Cause

When calling start.sh, the script creates shared folders:

if not exists(shared_seafiledir):
os.mkdir(shared_seafiledir)
if not exists(generated_dir):
os.makedirs(generated_dir)

and then calls generate_local_nginx_conf

generate_local_nginx_conf()

which tries to move the nginx config file to the shared folder /shared/nginx and then tries to link it to /etc/

call('mv {0} {1} && ln -sf {1} {0}'.format(nginx_etc_file, nginx_shared_file))

But the shared folder /shared/nginx is never created, so the moving and linking fails.

Solution

Create the folder /shared/nginx in start.py.

Thanks!

@AlexVonB
Copy link
Author

This only happens on 7.0, so it wont be relevant. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant