Source Update

This commit is contained in:
Christer Warén 2024-04-29 05:06:21 +03:00
parent 28aed09fd1
commit d54100edf8
3 changed files with 12 additions and 6 deletions

View File

@ -11,4 +11,7 @@ wx-init () {
apt-get install -y python3-pip python3-venv jq git curl &> /dev/null
python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/pip3 install ansible hvac netaddr jmespath pexpect &> /dev/null
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY --vault-password-file ~/.ansible/vault.yml --private-key ~/.ssh/init playbooks/init.yml -t init
}

View File

@ -9,9 +9,9 @@ wx-stop () {
chmod +x wx &> /dev/null
fi
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
sudo chmod +x /usr/bin/wx &> /dev/null
mkdir $HOME/bin &> /dev/null
curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o $HOME/bin/wx &> /dev/null
chmod +x $HOME/bin/wx &> /dev/null
exit 1
}

9
wx
View File

@ -232,9 +232,9 @@ wx-stop () {
chmod +x wx &> /dev/null
fi
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
sudo chmod +x /usr/bin/wx &> /dev/null
mkdir $HOME/bin &> /dev/null
curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o $HOME/bin/wx &> /dev/null
chmod +x $HOME/bin/wx &> /dev/null
exit 1
}
@ -271,6 +271,9 @@ wx-init () {
apt-get install -y python3-pip python3-venv jq git curl &> /dev/null
python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/pip3 install ansible hvac netaddr jmespath pexpect &> /dev/null
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY --vault-password-file ~/.ansible/vault.yml --private-key ~/.ssh/init playbooks/init.yml -t init
}
wx-settings() {