This repository has been archived on 2021-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
remark42/manage.sh

17 lines
492 B
Bash
Raw Normal View History

2021-10-23 23:33:28 -05:00
#!/bin/sh
case "$1" in
remap)
shift
echo "Running remap command for \`data/remark/var/rules\` for site \"$1\""
docker-compose exec remark remark42 remap --admin-passwd "$(grep -Po '(?<=ADMIN_PASSWD=).*$' .env)" -f var/rules -s "$1"
;;
2021-10-24 17:21:32 -05:00
boltbrowser)
shift
site="$1"
shift
echo "Running boltbrowser for \`data/remark/var/db/$site.db\`"
sudo ~/.local/share/go/bin/boltbrowser $@ "data/remark/var/db/$site.db"
2021-10-23 23:33:28 -05:00
esac