1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/converse_ynh.git synced 2024-09-03 18:25:53 +02:00
This commit is contained in:
ericgaspar 2021-07-16 19:39:12 +02:00
parent 6ad4d34d99
commit 23f93f9b6f
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 5 deletions

View file

@ -65,9 +65,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, the source from sources folder
mkdir -p $final_path && cp -a ../sources/* $final_path
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/index.html"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html"
ynh_add_config --template="../sources/index.html" --destination="$final_path/index.html"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"

View file

@ -78,8 +78,7 @@ then
# Download, the source from sources folder
mkdir -p $final_path && cp -a ../sources/* $final_path
ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file="$final_path/index.html"
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html"
ynh_add_config --template="../sources/index.html" --destination="$final_path/index.html"
fi
chmod 750 "$final_path"