fix(frappe-nginx): Get back to ls from find

This commit is contained in:
Lev 2021-11-09 14:22:17 +03:00
parent 6e2d08726b
commit 291f3f7123

View file

@ -8,7 +8,8 @@ rsync -a --delete /var/www/html/assets/* /assets
/rsync /rsync
touch /var/www/html/sites/.build -r "$(find /assets -maxdepth 1 -name "*.*" | head -n 1)" # shellcheck disable=SC2012
touch /var/www/html/sites/.build -r "$(ls -td /assets/* | head -n 1)"
[[ -z "${FRAPPE_PY}" ]] && FRAPPE_PY='0.0.0.0' [[ -z "${FRAPPE_PY}" ]] && FRAPPE_PY='0.0.0.0'