💾 Archived View for gmn.clttr.info › sources › geminispace.info.git › tree › infra › rebuild_index.s… captured on 2023-04-20 at 00:35:32.
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
#!/bin/bash BASEDIR=$1 LOCKFILE=${BASEDIR}/crawl.lock touch ${LOCKFILE} mkdir -p ${BASEDIR}/index.new/ systemctl --user stop gus cp ${BASEDIR}/index/gus.sqlite ${BASEDIR}/index.new/ systemctl --user start gus ~/.poetry/bin/poetry run build_index -d mv ${BASEDIR}/index ${BASEDIR}/index.old mv ${BASEDIR}/index.new ${BASEDIR}/index systemctl --user restart gus rm ${LOCKFILE}