summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
Commit message (Collapse)AuthorAgeFilesLines
* #997: Using tags with format `vX.Y.Z` instead of `opengnsys-X.Y.Z`Ramón M. Gómez2021-04-071-1/+2
|
* #1026 The installation and upgrade scripts display messages with the ↵Irina Gómez2021-03-041-0/+17
| | | | OpenGnsys version prerequisites; in case of update, they also show the current version.
* #1029 Installation and update show a warning about debug level of syslog.Irina Gómez2021-02-151-2/+2
|
* #1027 opengnsys_update.sh and opengnsys_installer.sh configure ogclient.Irina Gómez2021-02-151-0/+6
|
* #1018 opengnsys_update.sh starts ogserver after compilation.Irina Gómez2021-02-101-0/+1
|
* #997 Installer and updater download the latest versions of OGAgent and ogLive.Irina Gómez2020-12-171-2/+1
|
* #988 Add ogserver.json creation when running opengnsys_update.shJavier Sánchez Parra2020-11-031-3/+24
| | | | | | | | | | This patch enables the creation of a default json config for the ogserver when running opengnsys_update.sh, if no prior json config is detected. Eg. when updating from 1.1.1c to 1.2.0 Reviewed-by: Jose M. Guisado <jguisado@soleta.eu>
* #804 Fix updater php package retrievingJavier Sánchez Parra2020-10-301-1/+1
| | | | | | | | Updater script retrieves php7.1-mapi package instead of php7.2 metapackage. Otherwise, updating from 1.1.1c to 1.2.0 fails. This commit changes "apt-cache" search for the "php7.2" specific package dependency which is available in Ubuntu 18.04.
* #988 Read json config file in scriptsRoberto Hueso Gómez2020-10-221-1/+6
| | | | | | | | This patch implements the function source_json_config() that is used to read the new ogserver.json config file in the scripts. This replaces the old 'source .../ogserver.cfg'. Co-authored-by: Javier Sánchez Parra <jsanchez@soleta.eu>
* #997: Support for Initrd compressed in several formats.Ramón M. Gómez2020-09-031-1/+1
| | | | Adding compatibility with Ubuntu 20.04 Initrd, which is compressed in LZ4 format.
* #1003 Fix ogClient updateJavier Sánchez Parra2020-08-281-1/+1
| | | | | | | | ogClient is not updated when the update script runs. The update script is using "mv", which can not merge folders and is putting the update inside a folder. This patch updates the script to use "rsync", which can merge folders.
* #1002 Fix update script to not remove ogAdmRepo.cfgJavier Sánchez Parra2020-08-281-1/+4
| | | | | | | The ogAdmRepo config file is removed on update. Update script deletes ogAdmRepo.cfg file as it was deprecated, but it is still in use. This patch updates the script to not remove ogAdmRepo config file.
* #993 Remove ogAdmServerAuxRoberto Hueso Gómez2020-07-311-2/+0
| | | | | | This patch removes ogAdmServerAux which is no longer needed. This script is replaced by the modifications performed on 'setclientmode' and a call to the ogServer API POST /modes.
* #943: Updater also looks for the old version file.Ramón M. Gómez2020-07-211-2/+3
|
* #971: Updater backward compatibility.Ramón M. Gómez2020-06-251-11/+15
|
* #987 Use systemctl to disable/enable services in UbuntuJavier Sánchez Parra2020-06-241-1/+1
| | | | | | OpenGnsys install and update scripts were still using update-rc to disable and enable services in Debian/Ubuntu. But, since Debian 8 and Ubuntu 15, this should be done with systemd systemctl.
* #986 More renaming to ogserverJavier Sánchez Parra2020-06-231-1/+1
| | | | | Another step into renaming all references of ogAdmServer to ogServer. This commit mostly rename references to ogAdmServer.cfg in scripts.
* #986 Rename to ogserverJavier Sánchez Parra2020-06-191-4/+4
| | | | Step forward to rename all ogAdmServer references to ogServer
* #981 Use new ogServer systemd unit fileJavier Sánchez Parra2020-06-191-0/+19
| | | | | This commit adapts installer, updater and init scripts to work with new ogServer systemd unit file.
* #985 Install and update scripts now use ogServer repoJavier Sánchez Parra2020-06-191-8/+20
| | | | | | OpenGnsys is separating the different parts of the project in different git repositories. Now ogServer, formerly ogAdmServer, has is own repo, so is necessary to adapt install and update script to use this new repo.
* #984: Installer and updater download the OGAgent tarball defined in the ↵Ramón M. Gómez2020-06-161-2/+7
| | | | version file.
* #983: Merge branch `v1.1.1c` into `master`.Ramón M. Gómez2020-06-151-7/+7
|\
| * #943: Fix a bug in getting Git tag data before updating.Ramón M. Gómez2020-06-091-7/+7
| |
* | Revert "#959: Fix update bug when obtaining Git tags data."Ramón M. Gómez2020-06-091-6/+6
| | | | | | | | This reverts commit d4daa3475e859b94226aa081dd7d0765f0be4581.
* | Revert "#959: Update script checks all defined tags."Ramón M. Gómez2020-06-091-1/+1
| | | | | | | | This reverts commit efbe3cae676d640ff6ad16fae527a23d421af2bc.
* | #959: Update script checks all defined tags.Ramón M. Gómez2020-06-081-1/+1
| |
* | #959: Fix update bug when obtaining Git tags data.Ramón M. Gómez2020-06-081-6/+6
| |
* | #971 Remove ogAdmClient code from update scriptJavier Sánchez Parra2020-06-081-15/+0
| | | | | | | | | | ogAdmClient is deprecated, new versions of OpenGnsys use ogClient as clients software.
* | #971 Add ogClient update to the update scriptJavier Sánchez Parra2020-06-081-0/+30
| | | | | | | | | | | | | | New versions of OpenGnsys use ogClient as daemon for clients. Now update script downloads new version of ogClient from GitHub to update the code, maintaining the configuration file ogclient.json.
* | #970 Add automake depencency for ogAdmServerJavier Sánchez Parra2020-06-021-2/+2
| | | | | | | | New version of ogAdmServer need automake to generate the Makefile.
* | #981 Add systemd unit fileJavier Sánchez Parra2020-06-021-0/+14
| | | | | | | | | | | | | | | | The ogAdmServer needs to be started after MySQL, because it queries the DB at the beginning to obtain the schedules. This commit adds a systemd unit file that force OpenGnsys service to start after MySQL service
* | #971 Remove ogAdmAgent initializationJavier Sánchez Parra2020-06-021-11/+8
| | | | | | | | | | | | | | | | | | | | | | All the functionalities of the ogAdmAgent are now in the ogAdmServer. So, the it is not needed anymore. This commit remove the installation and update of the ogAdmAgent, adds a check to remove it if exists and removes it from the OpenGnsys init script. A future patch will remove all the code related to the ogAdmAgent.
* | #973 Restart OpenGnsys service after stopping itJavier Sánchez Parra2020-06-021-1/+3
| | | | | | | | | | | | | | | | | | After updating OpenGnsys with the script, if there is a new version of the ogAdmServer, the script stop the service. So, you had to start manually the service once the update has finished. This commit makes a restart of the service after copying the new version of the ogAdmServer.
* | #970 autotools support for ogAdmServerOpenGnSys Support Team2020-06-021-1/+1
|/ | | | | | | | | | | | | | To build and to install ogAdmServer: autoreconf -fi ./configure make make install Default prefix is /opt/opengnsys/ as usual. ogAdmServer uses autotools for compilation, so this patch adapts OpenGnsys updater and installer to use autotools for compilation.
* #972: Remove cron job definition from the default file; then updater checks ↵Ramón M. Gómez2020-04-221-17/+13
| | | | if service code has changed to restart it automatically.
* #959: Installer and updater download the lastest OGAgent version.Ramón M. Gómez2020-04-211-1/+0
|
* #927 Remove opengnsys.cron scriptJavier Sánchez Parra2020-04-071-1/+4
| | | | | | | | | | | | | | | | | | This commit removes the opengnsys cron script that checks if the ogAdmServer is running or using too much CPU and restarts the process. Now that the ogAdmServer is more stable this script is not needed. Also, without this script we are going to know better when the ogAdmServer is having a problem and get better reports. In case you observe a crash in ogAdmServer, please, run it under valgrind: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=/tmp/ogadmserver-valgrind-out.log /opt/opengnsys/sbin/ogAdmServer -f /opt/opengnsys/etc/ogAdmServer.cfg And post your 'ogadmserver-valgrind-out.log' file to the mailing list. This patch changes the installer and the update scripts too. They do not configure opengnsys.cron anymore. The update script search and remove the deprecated files as well.
* #941 Add missing dependencies for the ogAdmServerJavier Sánchez Parra2020-03-171-2/+2
| | | | | | This commits adds the binary of libdbi and the drivers to work with MySQL. A previous commit (1479f77) added the headers for the compilation, libdbi-dev.
* #964: Update script copies the MySQL / MariaDB template configuration file.Ramón M. Gómez2020-03-111-25/+8
|
* #941: Add new installation dependencies to compile services.Ramón M. Gómez2020-03-101-2/+2
|
* #946: Fix appropriate parameter (modify commit `8f24716`).Ramón M. Gómez2020-01-311-1/+1
|
* #946: Add API token to the ogAdmServer configuration file, if needed.Ramón M. Gómez2020-01-311-2/+5
|
* #951: Set default value to non-null pending fields when updating the ↵Ramón M. Gómez2020-01-271-0/+16
| | | | database (thanks to `acodoner` for reporting this problem on topic:418).
* #802 #888 opengnsys_update.sh adds arquitecture detection in dhcp ↵Irina Gómez2020-01-231-1/+17
| | | | configuration and prepares netboot directory, both for UEFI computers.
* #943: Fix bug when comparing the number of releases available for updating.Ramón M. Gómez2020-01-221-1/+1
|
* #951: Fix bug when `opengnsys_update.sh` applies incremental database updates.Ramón M. Gómez2020-01-211-1/+1
|
* #946: Update script keeps stable version when downloading OGAgent packages.Ramón M. Gómez2020-01-161-0/+1
|
* #943: Show `master` as the last option in the menu of releases to update.Ramón M. Gómez2020-01-161-3/+7
|
* #943: Fix GitHub API URL to check branch update date.Ramón M. Gómez2020-01-091-6/+8
|
* #943: Script `opengnsys_update.sh` shows a menu with available versions to ↵Ramón M. Gómez2020-01-091-5/+48
| | | | update.