feat: more a3 stuff
This commit is contained in:
parent
b3ec7ee32f
commit
69306fecdf
1 changed files with 3 additions and 3 deletions
6
bin/sc
6
bin/sc
|
@ -23,14 +23,14 @@ for host in $SC_HOSTS; do
|
||||||
case $command in
|
case $command in
|
||||||
install)
|
install)
|
||||||
if [ "$host" = "local" ]; then
|
if [ "$host" = "local" ]; then
|
||||||
escalate_command a3 ./meta.a3 install
|
escalate_command a3 ./meta.a3 ${2:-install}
|
||||||
else
|
else
|
||||||
LOGI "attempting to install on $host..."
|
LOGI "attempting to install on $host..."
|
||||||
if ! ssh $host "command -v a3"; then
|
if ! ssh $host "command -v a3"; then
|
||||||
LOGI "no a3, installing..."
|
LOGI "no a3, installing..."
|
||||||
ssh -t $host "git clone https://git.saluco.nl/strix/aaa /tmp/a3 && cd /tmp/a3 && sudo A3_LIB=./lib bin/a3 ./meta.a3 install; rm -rf /tmp/a3"
|
ssh -t $host "git clone https://git.saluco.nl/strix/aaa /tmp/a3 && cd /tmp/a3 && sudo A3_LIB=./lib bin/a3 ./meta.a3 ${2:-install}; rm -rf /tmp/a3"
|
||||||
fi
|
fi
|
||||||
ssh $host "git clone https://git.saluco.nl/strix/sconnect /tmp/sconnect && cd /tmp/sconnect && sudo a3 /tmp/sconnect/main.a3 install; rm -rf /tmp/sconnect"
|
ssh $host "git clone https://git.saluco.nl/strix/sconnect /tmp/sconnect && cd /tmp/sconnect && sudo a3 ./meta.a3 ${2:-install}; rm -rf /tmp/sconnect"
|
||||||
LOGI "installed"
|
LOGI "installed"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue