| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Valid commands depend on the "access level" determined by:
- You are root (root)
- You can read /opt/opengnsys/www/controlacceso.php (web)
Users might not know this, so invite to run as sudo if running some
command is not valid because of this.
|
|
|
|
|
|
|
|
| |
This reverts commit 127248e3454e84ba073e5413075e1e7aafef7c0d.
Web Console expects boot templates to have certain names, otherwise it
behaves incorrectly. The reverted commit changes this names to ones that
the Web Console do not recognize.
|
|
|
|
| |
Rename boot templates to improve readability and clarity.
|
|
|
|
|
|
|
| |
It is not needed for setting clients' boot mode.
Replace TEMPLATE_NAME in error messages with MODE_FILE as both reference
the template file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sometimes a software profile creation does not fail although there is
already an existing one with the same components.
After some investigation, the reason seems to be that legacy code
from ogAdmServer (deprecated) executes a SQL query using GROUP_CONCAT
grouping all software components id in increasing order but this
concatenated string ends up being truncated due to a maximul length
variable in MySQL server. This variable is: "group_concat_max_len" and
its default value is 1024.
Fix this by increasing group_concat max length in MySQL.
|
|
|
|
| |
introduced in commit 19528454b.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|