mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
fix some patches
This commit is contained in:
parent
105c1947b1
commit
f8d99ade60
1 changed files with 13 additions and 2 deletions
|
@ -107,6 +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
|
||||
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
|
||||
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"
|
||||
|
@ -115,9 +126,9 @@ patch "$install_dir/live/services/web/app/src/Features/Contacts/ContactControlle
|
|||
patch "$install_dir/live/services/web/app/views/admin/index.pug" "$install_dir/build_ldap/sharelatex_diff/admin-sysadmin.pug.diff"
|
||||
patch "$install_dir/live/services/web/app/views/user/login.pug" "$install_dir/build_ldap/sharelatex_diff/login.pug.diff"
|
||||
patch "$install_dir/live/services/web/app/views/layout/navbar-marketing.pug" "$install_dir/build_ldap/sharelatex_diff/navbar-marketing.pug.diff"
|
||||
#patch "$install_dir/live/services/web/app/views/layout/navbar.pug" "$install_dir/build_ldap/sharelatex_diff/navbar.pug.diff"
|
||||
patch "$install_dir/live/services/web/app/views/layout/navbar.pug" "$install_dir/build_ldap/sharelatex_diff/navbar.pug.diff"
|
||||
patch "$install_dir/live/services/web/app/src/router.js" "$install_dir/build_ldap/sharelatex_diff/router.js.diff"
|
||||
#patch "$install_dir/live/services/web/app/views/user/settings.pug" "$install_dir/build_ldap/sharelatex_diff/settings.pug.diff"
|
||||
patch "$install_dir/live/services/web/app/views/user/settings.pug" "$install_dir/build_ldap/sharelatex_diff/settings.pug.diff"
|
||||
|
||||
#sed -iE '/type=.*email.*/d' $install_dir/live/services/web/app/views/user/login.pug
|
||||
#sed -iE "s/email@example.com/${login_text:-user}/g" $install_dir/live/services/web/app/views/user/login.pug
|
||||
|
|
Loading…
Add table
Reference in a new issue