First stab at abra installer script

This commit is contained in:
Luke Murphy
2020-09-22 13:41:52 +02:00
commit c045e019fa
6 changed files with 105 additions and 0 deletions

10
abra/abra.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80 default_server;
server_name install.abra.autonomic.zone;
location / {
root /var/www/abra-installer;
wadd_header Content-Type text/plain;
index installer
}
}

18
abra/installer Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
ABRA_VERSION="0.1.0"
ABRA_SRC="https://git.autonomic.zone/autonomic-cooperative/abra/raw/tag/$ABRA_VERSION/abra"
function install_abra {
mkdir -p "$HOME/.local/bin"
curl "$ABRA_SRC" > "$HOME/.local/bin/abra"
chmod +x "$HOME/.local/bin/abra"
echo "abra installed to $HOME/.loca/bin/abra"
}
function run_installation {
install_abra
}
run_installation
exit 0