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
|
#!/bin/sh
|
||||||
. ./roles/home-cli/files/profile
|
. ./roles/home-cli/files/profile
|
||||||
if [ $(uname -s) = FreeBSD ]
|
./user-cli.yml -i ./inventories/$(uname -s).ini
|
||||||
then
|
|
||||||
INVENTORY=./inventories/freebsd.ini
|
|
||||||
elif [ $(uname -s) = OpenBSD ]
|
|
||||||
then
|
|
||||||
INVENTORY=./inventories/openbsd.ini
|
|
||||||
else
|
|
||||||
INVENTORY=./local.ini
|
|
||||||
fi
|
|
||||||
./user-cli.yml -i $INVENTORY
|
|
||||||
|
|
11
desktop.sh
11
desktop.sh
|
@ -1,12 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. ./roles/home-cli/files/profile
|
. ./roles/home-cli/files/profile
|
||||||
if [ $(uname -s) = FreeBSD ]
|
./user-gui.yml -i ./inventories/$(uname -s).ini
|
||||||
then
|
|
||||||
INVENTORY=./inventories/freebsd.ini
|
|
||||||
elif [ $(uname -s) = OpenBSD ]
|
|
||||||
then
|
|
||||||
INVENTORY=./inventories/openbsd.ini
|
|
||||||
else
|
|
||||||
INVENTORY=./local.ini
|
|
||||||
fi
|
|
||||||
./user-gui.yml -i $INVENTORY
|
|
||||||
|
|
Loading…
Reference in a new issue