1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00
garage_ynh/conf/regenconf_nginx_garage
2023-12-10 14:38:27 +01:00

11 lines
321 B
Bash

#!/bin/bash
action=$1
pending_dir=$4
domain=__DOMAIN__
app=__APP__
[[ "$action" == "pre" ]] || exit 0
source /usr/share/yunohost/helpers
ynh_replace_special_string --match_string="server_name $domain" --replace_string="server_name $domain *.$domain" --target_file="$pending_dir/../nginx/etc/nginx/conf.d/$domain.conf"