Skip to content

updating nginx to wait for moodle mount with ssl cert #130#138

Merged
hosungsmsft merged 1 commit into
Azure:masterfrom
enovationIT:nginx-fix
May 30, 2018
Merged

updating nginx to wait for moodle mount with ssl cert #130#138
hosungsmsft merged 1 commit into
Azure:masterfrom
enovationIT:nginx-fix

Conversation

@enovationIT
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@hosungsmsft hosungsmsft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. As I mentioned in the only comment, we'll accept this PR, but will change it soon so that it's nginx version upgrade tolerant.


if [ "$webServerType" = "nginx" -o "$httpsTermination" = "VMSS" ]; then
# update startup script to wait for certificate in /moodle mount
sed -i '/After=/ s/$/ moodle.mount/' /lib/systemd/system/nginx.service && systemctl daemon-reload
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but /lib/system/system/nginx.service may get overwritten if nginx version is upgraded.

I've been investigating how to fix this properly, and found that the correct location is /etc/systemd/system/nginx.service.d/override.conf. I was working on making that change, and in the meantime you beat me, which I'm very grateful for.

We'll accept this PR and change further to update the right conf file.

@hosungsmsft hosungsmsft merged commit b122936 into Azure:master May 30, 2018
naioja pushed a commit that referenced this pull request Dec 29, 2025
updating nginx to wait for moodle mount with ssl cert #130
vibehero100 pushed a commit to vibehero100/Moodle that referenced this pull request Apr 7, 2026
updating nginx to wait for moodle mount with ssl cert Azure#130
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 this pull request may close these issues.

2 participants