1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/converse_ynh.git synced 2024-09-03 18:25:53 +02:00

Merge pull request #10 from YunoHost-Apps/patch

fix
This commit is contained in:
Éric Gaspar 2021-07-16 20:48:49 +02:00 committed by GitHub
commit 39b201a3ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"