I need to prepare a setup script that will be transferred to an industrial PC (IPC) using a USB drive, together with all required files for an offline installation.
The script must perform the following tasks:
-
Install Ignition using a pre-downloaded Linux installer
-
Configure the IP address of the Linux system
-
Restore the Ignition backup file
All required files will be located in the same directory on the IPC. This directory will contain:
-
The Ignition installer file (
.run) -
The setup script (
.sh) -
The Ignition backup file (
.gwbk)
The goal is to enable a fully offline deployment process, where the script automates the installation and initial configuration of the system with minimal manual intervention. This is what I have done so far:
#!/bin/bash
echo "=== START SETUP ==="
chmod +x ignition-installer.run
sudo ./ignition-installer.run --mode unattended
sudo systemctl start ignition
sudo systemctl enable ignition
sudo cp *.gwbk /var/lib/ignition/data/backups/
echo "=== SETUP DONE ==="
echo "Otvori browser: http://localhost:8088"
echo "i napravi Restore backup-a"
``