1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3308 from jvonau/network_helper

Network helper
This commit is contained in:
A Holt 2022-07-14 11:31:26 -04:00 committed by GitHub
commit b221e0ca0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -94,3 +94,4 @@ echo "iiab-network run start: $Start"
echo "iiab-network run end: $End"
echo
echo "Please REBOOT to fully verify your network -- graphical desktops MUST reboot!"
exit 0

View file

@ -23,12 +23,18 @@
name: iiab-admin
#when: iiab_admin_install # Flag might be created in future?
- name: Copy iiab-apps-to-be-installed from {{ iiab_dir }} to /usr/bin/
- name: Copy iiab-apps-to-be-installed from {{ iiab_dir }}/scripts to /usr/bin/
copy:
src: "{{ iiab_dir }}/scripts/iiab-apps-to-be-installed" # /opt/iiab/iiab
dest: /usr/bin/
mode: '0755'
- name: Copy iiab-network from {{ iiab_dir }}/scripts to /usr/local/bin/
copy:
src: "{{ iiab_dir }}/scripts/iiab-network"
dest: /usr/local/bin/
mode: '0755'
- name: Install ~12 network/wifi/related packages + Squid if necessary + configure /etc/sysctl.conf -- full configuration LATER in 'network', after Stage 9
include_tasks: roles/network/tasks/install.yml
when: network_install and network_installed is undefined

7
scripts/iiab-network Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash -e
cd /opt/iiab/iiab
sudo ./iiab-network
rc=$?
if [ “${rc}” == “0” ]; then
sudo touch /etc/iiab/install-flags/iiab-network-complete
fi