OPSI Updater Deveplopment since: 2014-01-16 Web: sf.net/p/opsiupdater By: Islam Adel ########################################## Change Log: 2014-01-16 First Lines 2014-03-03 Public Release 2014-03-17 Added used setup scripts 2014-03-21 Updated readme 2021-11-29 opsi-shortcuts ########################################## opsi-updater ########################################## readme contents: (1) Type (2) Target (3) How to setup (4) required setup-scripts structure (5) How to run opsi-updater (6) folder contents (7) How to update opsi-updater (8) License ########################################## (1) Type: UNIX Command line tool(s) to run on OPSI Server ########################################## (2) Target: - Check for available Product Updates on Official Servers - Download and Update new Product version (if availble) on local OPSI Repository - Set "setup" action for the updated product on all clients having the product already installed. ########################################## (3) How to setup: Run this command on opsi Server: /bin/bash -c "$(curl -fsSL https://svn.code.sourceforge.net/p/opsiupdater/code-0/trunk/version-current/lib/opsi-shortcuts.sh) init" ########################################## (4) required setup-scripts structure: These strings are required in your setup.ins (Product Setup script) [Actions] DefVar $ProductVersion$ Set $ProductVersion$ = "24.3.0" The last string should be applied as it is considering spaces. The version number (eg. 24.3.0) should be the same number as the product version number and - for some products only - as the version number of the installer file name. For example if installer file name is: "Firefox Setup 24.3.0esr.exe" In the setup.ins, the predefined variable should be used to run the setup. Example: [Winbatch_install_32] "%ScriptPath%\files\Firefox Setup $ProductVersion$esr.exe" -ms -ira Background information: the opsi-info script changes the version number in the opsi database and also modifies the setup script for the corresponding version number. A working sample is available inside "setup-scripts" Folder ########################################## (5) How to run opsi-updater: 1) I would recommend defining the following shortcuts by editing your .bashrc / .profile (Read How to setup using SVN first) vim ~/.bashrc 2) Add these lines alias opsi-info='/home/opsimaint/opsiupdater/trunk/version-current/lib/opsi-info.sh' alias opsi-updater='/home/opsimaint/opsiupdater/trunk/version-current/opsi-updater.sh' alias opsi-updater-update='svn update /home/opsimaint/opsiupdater' 3) Run this command line on your OPSI Server: opsi-updater or if you prefer you can directly run opsi-updater.sh from the location you copied it ########################################## (6) folder contents: opsi-updater.sh main tool to start checking for updates and update products if available ########### lib/opsi-info.sh tool to read / edit version number ########### lib/lib.sh contains custom paths on server ########### prods/product_name.sh update script for each product ########### setup-scripts/ contains working sample setup scripts for some opsi products ########################################## (7) How to update opsi-updater: (Read How to run opsi-updater with shortcuts first) Run this command line on your OPSI Server: opsi-updater-update ########################################## (8) License: Mention Developer: Islam Adel ##########################################