11 lines
303 B
Plaintext
11 lines
303 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
source /usr/share/yunohost/helpers
|
||
|
|
||
|
|
||
|
action=$1
|
||
|
domain=__DOMAIN__
|
||
|
|
||
|
ynh_replace_special_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"
|