mirror of
https://github.com/YunoHost-Apps/converse_ynh.git
synced 2024-09-03 18:25:53 +02:00
commit
39b201a3ca
2 changed files with 2 additions and 5 deletions
|
@ -65,9 +65,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
|
|
||||||
# Download, the source from sources folder
|
# Download, the source from sources folder
|
||||||
mkdir -p $final_path && cp -a ../sources/* $final_path
|
mkdir -p $final_path && cp -a ../sources/* $final_path
|
||||||
|
ynh_add_config --template="../sources/index.html" --destination="$final_path/index.html"
|
||||||
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"
|
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
|
@ -78,8 +78,7 @@ then
|
||||||
|
|
||||||
# Download, the source from sources folder
|
# Download, the source from sources folder
|
||||||
mkdir -p $final_path && cp -a ../sources/* $final_path
|
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_add_config --template="../sources/index.html" --destination="$final_path/index.html"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/index.html"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue