improve package and begin to add config panel

This commit is contained in:
oiseauroch
2022-11-24 00:22:09 +01:00
parent a1ec9b2763
commit b7c721266e
11 changed files with 100 additions and 124 deletions

10
hooks/regen_conf Normal file
View File

@@ -0,0 +1,10 @@
#!/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"