1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

workaround for patches

This commit is contained in:
Thomas 2024-02-11 09:15:30 +01:00 committed by GitHub
parent f8d99ade60
commit e81947968d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,17 +107,17 @@ ynh_add_config --template="../conf/production.json" --destination="$install_dir/
ynh_add_config --template="../conf/production.json" --destination="$install_dir/live/services/history-v1/config/production.json"
cp "$install_dir/build/server-ce/config/custom-environment-variables.json" "$install_dir/live/services/history-v1/config/"
pushd "$install_dir/live/services/web/app/views/layout/"
ynh_secure_remove navbar.pug
ynh_exec_warn_less wget https://raw.githubusercontent.com/overleaf/overleaf/7c8014d791764aa9d98c48211fcbc04910df76d2/services/web/app/views/layout/navbar.pug
#temporary workaround to update patches
pushd "$install_dir/build_ldap/sharelatex_diff"
rm navbar.pub.diff
ynh_exec_warn_less wget https://raw.githubusercontent.com/xavion-lux/ldap-overleaf-sl-multiplatform/f2f58191434758a76294e59d5a275dc45a201556/ldap-overleaf-sl/sharelatex_diff/navbar.pug.diff
popd
pushd "$install_dir/live/services/web/app/views/user/"
ynh_secure_remove settings.pug
ynh_exec_warn_less wget https://raw.githubusercontent.com/overleaf/overleaf/749aef1c6fc98efc466633ecd0dadbe7446a7b40/services/web/app/views/user/settings.pug
pushd "$install_dir/build_ldap/sharelatex_diff"
rm settings.pub.diff
ynh_exec_warn_less wget https://raw.githubusercontent.com/xavion-lux/ldap-overleaf-sl-multiplatform/f2f58191434758a76294e59d5a275dc45a201556/ldap-overleaf-sl/sharelatex_diff/settings.pug.diff
popd
#patch files for LDAP integration
patch "$install_dir/live/services/web/app/src/Features/Authentication/AuthenticationController.js" "$install_dir/build_ldap/sharelatex_diff/AuthenticationController.js.diff"
patch "$install_dir/live/services/web/app/src/Features/Authentication/AuthenticationManager.js" "$install_dir/build_ldap/sharelatex_diff/AuthenticationManager.js.diff"