mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
add regen_conf hook
This commit is contained in:
parent
a37de1795c
commit
0d40db44d4
1 changed files with 10 additions and 0 deletions
10
hooks/post_conf_regen
Normal file
10
hooks/post_conf_regen
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
||||
action=$1
|
||||
domain=__DOMAIN__
|
||||
|
||||
ynh_replace_string --match_string="server_name $domain" --replace_string="server_name $domain *.$domain" --target_file="/etc/nginx/conf.d/$domain.conf"
|
||||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.conf"
|
Loading…
Add table
Reference in a new issue