mirror of
https://github.com/YunoHost-Apps/fluffychat_ynh.git
synced 2024-09-03 18:36:04 +02:00
fix: patching main.dart.js to replace the default matrix server
This commit is contained in:
parent
32db2df66b
commit
d0a2d4ba72
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ path_without_trailing_slash=${path%/}
|
||||||
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
||||||
|
|
||||||
# patching main.dart.js to replace the default matrix server
|
# patching main.dart.js to replace the default matrix server
|
||||||
ynh_replace_string --match_string="\$\.cmx=\"matrix.org\"" --replace_string="\$\.cmx=\"$default_matrix_server\"" --target_file="$install_dir/main.dart.js"
|
ynh_replace_string --match_string="=\"matrix.org\"" --replace_string="=\"$default_matrix_server\"" --target_file="$install_dir/main.dart.js"
|
||||||
|
|
||||||
chown -R "www-data:www-data" "$install_dir"
|
chown -R "www-data:www-data" "$install_dir"
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ then
|
||||||
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
ynh_replace_string --match_string="<base href=".*">" --replace_string="<base href=\"$path_without_trailing_slash/\">" --target_file="$install_dir/index.html"
|
||||||
|
|
||||||
# patching main.dart.js to replace the default matrix server
|
# patching main.dart.js to replace the default matrix server
|
||||||
ynh_replace_string --match_string="\$\.cmx=\".*\"" --replace_string="\$\.cmx=\"$default_matrix_server\"" --target_file="$install_dir/main.dart.js"
|
ynh_replace_string --match_string="=\"matrix.org\"" --replace_string="=\"$default_matrix_server\"" --target_file="$install_dir/main.dart.js"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R "www-data:www-data" "$install_dir"
|
chown -R "www-data:www-data" "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue