Installer scripts for Bastion
They install Node.js and the packages Bastion needs, then set Bastion up in your home directory.
| Script | Operating system | Package manager |
|---|---|---|
linux/apt.sh |
Debian, Ubuntu | apt |
linux/dnf.sh |
Fedora, RHEL 8+ | dnf |
linux/yum.sh |
RHEL 7, CentOS 7 | yum |
linux/pacman.sh |
Arch | pacman |
darwin/brew.sh |
macOS | Homebrew |
windows/chocolatey.ps1 |
Windows | Chocolatey |
The examples use linux/apt.sh. Swap in the script for your system.
curl -fsSL https://raw.githubusercontent.com/TheBastionBot/BastionScripts/main/linux/apt.sh | bashOr download it and run it yourself:
curl -fsSLO https://raw.githubusercontent.com/TheBastionBot/BastionScripts/main/linux/apt.sh
chmod +x apt.sh
./apt.shYou'll be asked for your password. sudo is used to install system packages, never for
anything inside your home directory. pacman doesn't support partial upgrades, so
pacman.sh upgrades the whole system first.
Node.js is installed with fnm, which hooks into your
shell profile. Source your shell profile or open a new terminal before you run node or
npm.
Run PowerShell as administrator. The installer exits if it isn't elevated.
irm https://raw.githubusercontent.com/TheBastionBot/BastionScripts/main/windows/chocolatey.ps1 | iexBastion won't start until it's configured. Add your bot's token, ID, owners and MongoDB
URI to settings.yaml in the installation directory.
An existing installation is moved to $HOME/Bastion-Old before the new one is set up, so
you can go back to it.
Join Bastion HQ and our support staff will help you out.
