rossanoparis - 6 days ago

System information
- Controller: KUNBUS RevPi CONNECT-S
- OS: Linux buster 32bit 5.10.103-rt62-v7l #1 SMP PREEMPT_RT armv7l GNU/Linux
- CODESYS v3.5 SP19 Patch 2

I'm facing a problem related to codesys licences using a procedure based on a bash script.
Such bash script detect the presence of new .deb files and install them on system.
My automation solution don't allow to be maintained by dedicated personal, thus even the CODESYS runtime SW must be installed using an "automatic" procedure instead of using the CODESYS tool.
remark I've been using the following procedure since the runtime v4.5 without any issue.

Before installing the new runtime packages, I need to copy the file CODESYSControl_User.cfg (here attached) because of new section which is necessary to add in order to allow some folders to be written by CODESYS runtime v4.9
Up to now, this has been unnecessary, this is the main difference between my previos bash file and the new one.
remark If I skip this action, everythings goes fine, but my CODESYS application can't work as it needs to access some folders on controller's file system.

- Before the procedure:
the licenses are OK (see attached file lic-01.png)
- After the procedure:
the new CODESYS runtime version is correctly installed, but the software container with v1.19 and all licences disappear (see attached file lic-02.png)

This is the synthetic content of bash script I'm using.

   # Stop runtime
   sudo service codesyscontrol stop
   sudo service codesysedge stop

   # Move the new CODESYSControl_User.cfg file
   # New configuraton with folders declared
   sudo mv -f CODESYSControl_User.cfg /etc

   # Install runtime package
   echo N | sudo apt-get install -y --allow-downgrades codesyscontrol_raspberry_4.9.0.0_armhf.deb

   # Install edge gateway package
   echo N | sudo apt-get install -y --allow-downgrades codesysedge_edgearmhf_4.9.0.0_armhf.deb

   # Reboot controller
   sudo reboot   

Thanks in advance