Use uname for inventories
This commit is contained in:
parent
c3083bc8a7
commit
53ee8c6bb7
6 changed files with 2 additions and 20 deletions
11
console.sh
11
console.sh
|
@ -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
|
||||
|
|
11
desktop.sh
11
desktop.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue