summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* #941 Set MySQL encoding to UTF-8Javier Sánchez Parra2020-04-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit sets the MySQL enconding to UTF8. This way we can avoid problems with special characters in strings, like: ó. It also changes the installation script to always copy the MySQL configuration template and restart MySQL. So, even if the server had MySQL installed before the OpenGnsys installation, the script configures MySQL. Example error that this commit should fix: ogAdmServer[12524]: failed to query database (actualizaSoftware:2380) 1366: Incorrect string value: '\xF3n de ...' for column 'descripcion' at row 1 The encoding configuration before this commit should be like this: mysql> SHOW VARIABLES LIKE 'char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.10 sec) The encoding configuration after this commit should be like this: mysql> SHOW VARIABLES LIKE 'char%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.01 sec)
* #959: Installer copies the new MySQL configuration template to enable the ↵Ramón M. Gómez2020-03-051-0/+3
| | | | event scheduler automatically.
* #955: Adapt DHCP template file to `addtodhcp` script.Ramón M. Gómez2020-03-041-10/+4
|
* #965: `oglivecli rebuild` detects short directory names.Ramón M. Gómez2020-03-041-8/+9
|
* #965: `oglivecli install` uses shorter directory names.Ramón M. Gómez2020-03-041-4/+7
|
* #488 #959 comparedhcpopengnsys: Fixes error when computer definition was in ↵Irina Gómez2020-03-031-6/+29
| | | | one line.
* #955: Correct quoting of input parameters.Ramón M. Gómez2020-03-021-2/+2
|
* #955: `addtodhcp` script checks if all routers are defined in DHCP ↵Ramón M. Gómez2020-02-271-2/+7
| | | | configuration file.
* #957: `comparedhcpopengnsys` script adapted to common functions.Ramón M. Gómez2020-02-252-38/+30
|
* #957: `ogagentqueue` cron script adapted to common functions.Ramón M. Gómez2020-02-251-28/+11
|
* #957: `setsmbpass` script adapted to common functions.Ramón M. Gómez2020-02-251-20/+16
|
* #957: `setserveraddr` uses the new global functions.Ramón M. Gómez2020-02-252-21/+13
|
* #957 #958: `setclientlive` and `setclientmode` script are adapted to global ↵Ramón M. Gómez2020-02-252-110/+77
| | | | functions and avoid SQL injectionn.
* #959: Remove duplicate script.Ramón M. Gómez2020-02-241-9/+0
|
* #957: Script `comparemac` uses common server functions.Ramón M. Gómez2020-02-181-30/+27
|
* #957 #958: Script `settoken`: use `version` function and avoid SQL injection.Ramón M. Gómez2020-02-181-9/+10
|
* #957: Script `registeredsoftware`: use common server functions and avoid SQL ↵Ramón M. Gómez2020-02-181-38/+16
| | | | injection.
* #958: Avoid SQL injection in `addtodhcp` and `listclientlive`.Ramón M. Gómez2020-02-182-4/+5
|
* #957: Script `listclientmode` uses common server functions.Ramón M. Gómez2020-02-181-36/+28
|
* #957: Script `listclientlive` uses common server functions.Ramón M. Gómez2020-02-182-36/+22
|
* #768: `oglivecli check` verifies if the linked directory matches the one ↵Ramón M. Gómez2020-02-181-0/+3
| | | | defined by default.
* #957 #768: Improvements in `oglivecli` script: display proper help of ↵Ramón M. Gómez2020-02-181-50/+48
| | | | parameters, raise error if a file cannot be downloaded, standardized error messages.
* #957: Adapt `oglivecli` script to global functions.Ramón M. Gómez2020-02-171-66/+32
|
* #957: Script `supportsave` uses global functions to show help and manage errors.Ramón M. Gómez2020-02-172-19/+26
|
* #957: New function to show the script version.Ramón M. Gómez2020-02-141-0/+6
|
* #955: New script `addtodhcp`to update the DHCP configuration file using the ↵Ramón M. Gómez2020-02-141-0/+97
| | | | database data.
* #946: Fix bug in commit `6640e2c` when `setservderaddr` parses configuration ↵Ramón M. Gómez2020-02-101-1/+1
| | | | parameters.
* PXE template for ogLive: parameter duplicate 'oglivedir' is removed.Irina Gómez2020-02-041-1/+1
|
* #946: Script `setserveraddr` updates the interface parameter.Ramón M. Gómez2020-01-311-4/+6
|
* #946: Remove duplicate line in DHCP template.Ramón M. Gómez2020-01-311-1/+0
|
* #811 setclientmode: Fixs error when call function getcaller.Irina Gómez2020-01-211-1/+1
|
* #914 #811 Fixs error in setclientmode: getcaller function is included for ↵Irina Gómez2020-01-201-0/+6
| | | | detect parent process (program or script).
* #914 PXE template for ogLive: support Ubuntu 18. The marks for windows boot ↵Irina Gómez2019-12-051-2/+2
| | | | are searched in windows partitions only. 'acodoner' gave this solution in [message:907].
* #802 #888 PXE default template for UEFI shows a menu with operating system ↵Irina Gómez2019-12-052-7/+34
| | | | loaders. Searchs grub, rEFInd, operating system restored with OpenGnsys, windows and Ubuntu.
* #914 #811 setclientmode: Fix error for temporary change of PXE file. Adds ↵Irina Gómez2019-12-051-1/+6
| | | | permission to be call from console, for example with 'Ejecutar script' .
* #925: Script `settoken` changes REST token for users.Ramón M. Gómez2019-11-111-23/+30
|
* #839: Use global function to execute commands in the database.Ramón M. Gómez2019-11-112-15/+17
|
* #839: New `checkrest` script to run automatic tests in the OpenGnsys Server ↵Ramón M. Gómez2019-11-081-0/+151
| | | | REST API (includes the first 17 test).
* #802 #888 On UEFI computers, OpenGnsys installs grub to boot from the hard ↵Irina Gómez2019-11-044-13/+13
| | | | drive. You can use the rEFInd template example for computers without SecureBoot.
* #816 856: Scripts `setserveraddr` and etclientmode` use common Shell ↵Ramón M. Gómez2019-10-292-36/+19
| | | | function file.
* #816: Define a new shell parameter to know if client is defined as a ↵Ramón M. Gómez2019-10-291-3/+4
| | | | teaching computer.
* #856: Fix bug when updating repository IP address.Ramón M. Gómez2019-10-292-47/+42
|
* #802 #888 PXE templates support EFI partition in whichever partition. ↵Irina Gómez2019-10-228-13/+27
| | | | Example template for boot with grub.
* #925: Only the installer uses {{{settoken}}} script to generate ↵Ramón M. Gómez2019-10-162-17/+5
| | | | authentication tokens.
* #915 Change WebConsole to read API token from ogAdmServer.cfgJavier Sánchez Parra2019-10-141-4/+4
| | | | | | | | | | This commit changes restfunctions.php to read the API token of ogAmdServer from ogAdmRepo.cfg to ogAdmServer.cfg. This way it avoids possible communication errors if ogAdmRepo.cfg and ogAdmServer.cfg are desynced. In order to restfuntions.php can read ogAdmServer.cfg this commit also changes the permissions of the file.
* #802 #888 PXE template for new computers '00unknown' displays a boot menu ↵Irina Gómez2019-10-112-27/+56
| | | | with ogLive and the other boot loaders finded.
* #928 Multicast ports are allowed from 9000 to 9098. Port 9100 is assigned to ↵Irina Gómez2019-10-101-1/+1
| | | | bacula Director.
* #925: settoken: new server script to generate service access tokens.Ramón M. Gómez2019-09-262-0/+114
|
* #929 setsslkey: Script for configurate public key authentication in ogLive.Irina Gómez2019-09-251-0/+127
|
* #802 #888 setclientmode: fix web user detection.Ramón M. Gómez2019-09-241-4/+5
|