~cadence/bibliogram-updater

A collection of scripts to easily install and update Bibliogram.
3ad455fe — Cadence Ember 2 months ago
add counter restart feature
788ab286 — Cadence Ember 3 months ago
Add navigation section to readme
fec68ae7 — Cadence Ember 3 months ago
Automatically update Git remotes to sourcehut

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~cadence/bibliogram-updater
read/write
git@git.sr.ht:~cadence/bibliogram-updater

You can also use your local clone with git send-email.

#Bibliogram updater

A collection of scripts to easily install and update Bibliogram.

#Quick start

git clone https://git.sr.ht/~cadence/bibliogram-updater

Run ./run.fish to run Bibliogram, and to install it and its requirements if they don't already exist. Updates will be installed automatically.

Run ./clean.fish to clean up the installation.

#After installing

You may want to do some of these things:

#It didn't work!

Please open an issue so I can fix it! Please tell me as much information as possible, most importantly the command you ran and the output on the console.

If you don't like GitHub, you can talk to me privately, or join the discussion room on Matrix: #bibliogram:matrix.org

#What's a fish?

The scripts are written in fish. You'll need to install fish: https://fishshell.com/

You do not have to set fish as your default shell. The scripts have #! lines, which makes them run in fish no matter what shell you are using.

If you want to port this to bash, please go ahead! I would have written it in bash originally for convenience, but I don't know bash.

#What do the scripts do?

run.fish

  1. It will update itself if an update is available.
  2. If Bibliogram isn't already installed, it will run install.fish.
  3. It will update Bibliogram.
  4. It will run Bibliogram.
  5. It will attempt to update Bibliogram from Git. If the update is successful, it will restart Bibliogram.

install.fish

  1. It will check that git, wget and nc are available, and will ask you to install them if they aren't.
  2. If node isn't installed, it will download a copy to use from then on.
  3. It will clone the Bibliogram repo.
  4. It will run npm install.
  5. It will guide you through setting up website_origin, port, feeds/enabled, and does_not_track.
  6. It will send you back to run.fish.

clean.fish

  1. It will ask you for confirmation, then delete any files and directories that the other scripts created.