Use uname for inventories

This commit is contained in:
Anthony Rose 2024-03-22 15:59:10 +00:00
parent c3083bc8a7
commit 53ee8c6bb7
6 changed files with 2 additions and 20 deletions

View file

@ -1,12 +1,3 @@
#!/bin/sh
. ./roles/home-cli/files/profile
if [ $(uname -s) = FreeBSD ]
then
INVENTORY=./inventories/freebsd.ini
elif [ $(uname -s) = OpenBSD ]
then
INVENTORY=./inventories/openbsd.ini
else
INVENTORY=./local.ini
fi
./user-cli.yml -i $INVENTORY
./user-cli.yml -i ./inventories/$(uname -s).ini

View file

@ -1,12 +1,3 @@
#!/bin/sh
. ./roles/home-cli/files/profile
if [ $(uname -s) = FreeBSD ]
then
INVENTORY=./inventories/freebsd.ini
elif [ $(uname -s) = OpenBSD ]
then
INVENTORY=./inventories/openbsd.ini
else
INVENTORY=./local.ini
fi
./user-gui.yml -i $INVENTORY
./user-gui.yml -i ./inventories/$(uname -s).ini