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