mirror of
https://github.com/benbusby/farside.git
synced 2025-03-15 11:46:32 -04:00

This adds a couple of new scripts: install-crontab.sh and update.sh. The install-crontab script does exactly that -- it installs a new crontab that runs the update script every 5 minutes. An update script was added to simplify the crontab a bit and to ensure the Elixir update script is executed from the correct directory.
7 lines
118 B
Bash
Executable File
7 lines
118 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SCRIPT_DIR="$(builtin cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
|
|
|
cd "$SCRIPT_DIR"
|
|
mix run update.exs
|