diff --git a/scripts/install b/scripts/install index 9103efd..419a56b 100755 --- a/scripts/install +++ b/scripts/install @@ -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