Gotta generate security.conf.inc during .deb deployment because it's needed by yunohost_admin.conf

This commit is contained in:
Alexandre Aubin 2020-04-08 12:15:01 +02:00 committed by GitHub
parent 3d0bd9f32c
commit be8427d5a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ do_init_regen() {
rm -f "${nginx_dir}/sites-enabled/default"
export compatibility="intermediate"
ynh_render_template "security.conf.inc" "${nginx_conf_dir}/security.conf.inc"
ynh_render_template "yunohost_admin.conf" "${nginx_conf_dir}/yunohost_admin.conf"
# Restart nginx if conf looks good, otherwise display error and exit unhappy