| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
If the logrotate files for opengnsys indicate to rotate files that
do not exist, the process ignores them and continues with the next one.
The missingok clause is added to the logrotate configuration files.
|
|
|
|
|
|
|
|
|
| |
ogclient.json has samba user and pass because ogVDI needs them to upload
qcow2 images to the repository. setsmbpass sets user and pass and
updates ogLives to match. If a user executes setsmbpass, then
ogclient.json samba info becomes outdated.
Add ogclient.json samba user and pass update to setsmbpass script.
|
|
|
|
|
| |
ogclient.json has the samba password in plain text. This commit changes
ownership and permissions to improve the security.
|
| |
|
|
|
|
|
| |
The script was not detecting the Initrd compression program,
could not get the samba password and needed to ask for it.
|
|
|
|
| |
source_json_config loads config values.
|
|
|
|
|
|
|
|
| |
setserveraddr script modified ogserver.json values with "sed". This
caused unwanted changes in database.ip.
This commit replaces "sed" with "jq" for modifying ogserver.json,
ensuring only rest.ip and wol.interface values change.
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Not used, and now there is a configuration ogserver.json
|
|
|
|
| |
This patch sets the renewed api_token in the config file ogserver.json
|
|
|
|
|
|
|
| |
This awk expressions is parsing a key1=value1 key2=value2... expression.
For example one of the 'awk' in this patch looks for the key "oglivedir"
and parses the value of that key correctly.
|
| |
|
|
|
|
| |
Adding compatibility with Ubuntu 20.04 Initrd, which is compressed in LZ4 format.
|
|
|
|
|
| |
This config file contains the parameters needed in order to run the
script without the need to make any queries to the database.
|
|
|
|
|
| |
Another step into renaming all references of ogAdmServer to ogServer.
This commit mostly rename references to ogAdmServer.cfg in scripts.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This also removes the legacy ogAdmClient for these scripts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
event scheduler automatically.
|
| |
|
| |
|
| |
|
|
|
|
| |
one line.
|
| |
|
|
|
|
| |
configuration file.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
functions and avoid SQL injectionn.
|
| |
|
| |
|
| |
|
|
|
|
| |
injection.
|
| |
|
| |
|
| |
|
|
|
|
| |
defined by default.
|
|
|
|
| |
parameters, raise error if a file cannot be downloaded, standardized error messages.
|
| |
|
| |
|
| |
|
|
|
|
| |
database data.
|
|
|
|
| |
parameters.
|
| |
|
| |
|
| |
|