💾 Archived View for gmn.clttr.info › sources › geminispace.info.git › tree › infra › update_index.sh… captured on 2023-06-14 at 14:31:26.
⬅️ Previous capture (2023-04-20)
-=-=-=-=-=-=-
#!/bin/bash BASEDIR="$1" cd "${BASEDIR}" LOCKFILE="${BASEDIR}/crawl.lock" if [[ -f "${LOCKFILE}" ]]; then echo "Lockfile is there, exiting" exit fi touch "${LOCKFILE}" rm -f "${BASEDIR}/gus.log" "${BASEDIR}/infra/filter_seed_request.sh" "${BASEDIR}" /home/gus/.local/bin/poetry run crawl /home/gus/.local/bin/poetry run build_index systemctl --user restart gus rm "${LOCKFILE}"