Update .local/bin/provision
This commit is contained in:
parent
0acf81202a
commit
dedcb84911
1 changed files with 72 additions and 71 deletions
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
### Qubes dom0 specific code at top
|
### Qubes dom0
|
||||||
|
if command -v qubesctl > /dev/null; then
|
||||||
# The VM name that will manage the Ansible provisioning (for Qubes dom0)
|
# The VM name that will manage the Ansible provisioning (for Qubes dom0)
|
||||||
ANSIBLE_PROVISION_VM="provision"
|
ANSIBLE_PROVISION_VM="provision"
|
||||||
|
|
||||||
|
@ -35,10 +36,6 @@ function configureWizard() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
### Update via system package manager and install Homebrew dependencies
|
|
||||||
if command -v qubesctl > /dev/null; then
|
|
||||||
# Qubes dom0
|
|
||||||
|
|
||||||
### Ensure dom0 is updated
|
### Ensure dom0 is updated
|
||||||
if [ ! -f /root/dom0-updated ]; then
|
if [ ! -f /root/dom0-updated ]; then
|
||||||
sudo qubesctl --show-output state.sls update.qubes-dom0
|
sudo qubesctl --show-output state.sls update.qubes-dom0
|
||||||
|
@ -82,7 +79,11 @@ if command -v qubesctl > /dev/null; then
|
||||||
fi
|
fi
|
||||||
qvm-run --pass-io "$ANSIBLE_PROVISION_VM" 'curl -sSL https://install.doctor/start > ~/start.sh && bash ~/start.sh'
|
qvm-run --pass-io "$ANSIBLE_PROVISION_VM" 'curl -sSL https://install.doctor/start > ~/start.sh && bash ~/start.sh'
|
||||||
exit 0
|
exit 0
|
||||||
elif command -v apt-get > /dev/null; then
|
fi
|
||||||
|
|
||||||
|
### System package manager update / Homebrew dependencies
|
||||||
|
if ! command -v curl > /dev/null || ! command -v git > /dev/null; then
|
||||||
|
if command -v apt-get > /dev/null; then
|
||||||
# Debian / Ubuntu
|
# Debian / Ubuntu
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y curl git
|
sudo apt-get install -y curl git
|
||||||
|
@ -116,11 +117,11 @@ elif command -v pkg > /dev/null; then
|
||||||
echo "TODO - Add support for Termux"
|
echo "TODO - Add support for Termux"
|
||||||
elif command -v xbps-install > /dev/null; then
|
elif command -v xbps-install > /dev/null; then
|
||||||
# Void
|
# Void
|
||||||
echo "TODO - Add support for Void"
|
|
||||||
elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then
|
elif [[ "$OSTYPE" == 'cygwin' ]] || [[ "$OSTYPE" == 'msys' ]] || [[ "$OSTYPE" == 'win32' ]]; then
|
||||||
# Windows
|
# Windows
|
||||||
choco install -y curl git node
|
choco install -y curl git node
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
### Install Homebrew
|
### Install Homebrew
|
||||||
ensurePackageManagerHomebrew() {
|
ensurePackageManagerHomebrew() {
|
||||||
|
|
Loading…
Reference in a new issue