Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 930 Bytes

patch-code-from-images.md

File metadata and controls

34 lines (25 loc) · 930 Bytes

Example: https://discuss.erpnext.com/t/sms-two-factor-authentication-otp-msg-change/47835

Above example needs following Dockerfile based patch

FROM frappe/erpnext-worker:v12.17.0

...
USER root
RUN sed -i -e "s/Your verification code is/আপনার লগইন কোড/g" /home/frappe/frappe-bench/apps/frappe/frappe/twofactor.py
USER frappe
...

Example for nginx image,

FROM frappe/erpnext-nginx:v13.27.0

# Hack to use Frappe/ERPNext offline.
RUN sed -i 's/navigator.onLine/navigator.onLine||true/' \
  /usr/share/nginx/html/assets/js/desk.min.js \
  /usr/share/nginx/html/assets/js/dialog.min.js \
  /usr/share/nginx/html/assets/js/frappe-web.min.js

Alternatively copy the modified source code file directly over /home/frappe/frappe-bench/apps/frappe/frappe/twofactor.py

...
COPY twofactor.py /home/frappe/frappe-bench/apps/frappe/frappe/twofactor.py
...