Skip to content
Snippets Groups Projects
Verified Commit 5143b553 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: License texts

parent bfac6bae
No related branches found
No related tags found
2 merge requests!31ENH: Update script for outdated dumps.,!30Mariadb 10.11: New reserved keyword
Pipeline #55856 passed
# This file is a part of the Linkahead Project.
# #
# ** header v3.0 # Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
# This file is a part of the CaosDB Project. # Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
#
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# #
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
# ** end header
#
SHELL=/bin/bash SHELL=/bin/bash
INSTALL_SQL_FILE=db_5_0.sql INSTALL_SQL_FILE=db_5_0.sql
......
# This file is a part of the LinkAhead Project.
# #
# ** header v2.0 # Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
# This file is a part of the CaosDB Project. # Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
#
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# #
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
# ** end header
#
# # Commands # # Commands
# The MySQL client program. # The MySQL client program.
......
# This file is a part of the CaosDB Project. # This file is a part of the LinkAhead Project.
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019, 2020 Daniel Hornung (d.hornung@indiscale.com) # Copyright (C) 2019, 2020, 2024 Daniel Hornung (d.hornung@indiscale.com)
# Copyright (C) 2020 Henrik tom Wörden # Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020, 2024 IndiScale GmbH <info@indiscale.com>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -52,10 +52,16 @@ function mysql_execute_file { ...@@ -52,10 +52,16 @@ function mysql_execute_file {
fi fi
} }
# Return the arguments from `get_db_args_nodb` and additionally the database name as
# `--database=mydatabasename`.
function get_db_args { function get_db_args {
echo "$(get_db_args_nodb) --database=$DATABASE_NAME" echo "$(get_db_args_nodb) --database=$DATABASE_NAME"
} }
# Return arguments for user, password, host, port and additional options in MYSQL_OPTS.
#
# For example, the output may be:
# --user=myuser --password=mypassword --host=example.com --port=1234 --other --option
function get_db_args_nodb { function get_db_args_nodb {
if [ -n "$MYSQL_USER" ]; then if [ -n "$MYSQL_USER" ]; then
mysql_con_arguments="--user=$MYSQL_USER" mysql_con_arguments="--user=$MYSQL_USER"
......
# This file is a part of the CaosDB Project. # This file is a part of the Linkahead Project.
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019, 2020 Daniel Hornung (d.hornung@indiscale.com) # Copyright (C) 2019, 2020, 2024 Daniel Hornung <d.hornung@indiscale.com>
# Copyright (C) 2020 Henrik tom Wörden # Copyright (C) 2020 Henrik tom Wörden
# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> # Copyright (C) 2020, 2024 IndiScale GmbH <info@indiscale.com>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -62,10 +62,12 @@ export MYSQL_CMD ...@@ -62,10 +62,12 @@ export MYSQL_CMD
export MYSQLDUMP_CMD export MYSQLDUMP_CMD
export MYSQLADMIN_CMD export MYSQLADMIN_CMD
export MYSQL_CONFIG_EDITOR_CMD export MYSQL_CONFIG_EDITOR_CMD
export MYSQL_HOST export MYSQL_HOST
export MYSQL_PORT export MYSQL_PORT
export MYSQL_USER export MYSQL_USER
export MYSQL_OPTS export MYSQL_OPTS
export DATABASE_NAME export DATABASE_NAME
export DATABASE_USER export DATABASE_USER
export DATABASE_USER_PW export DATABASE_USER_PW
......
#!/bin/bash #!/bin/bash
# ** header v3.0 # This file is a part of the LinkAhead Project.
# This file is a part of the CaosDB Project.
# #
# Copyright (C) 2021 Indiscale GmbH <info@indiscale.com> # Copyright (C) 2021, 2024 Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2019, 2020, 2021 Daniel Hornung <d.hornung@indiscale.com> # Copyright (C) 2019, 2020, 2021, 2024 Daniel Hornung <d.hornung@indiscale.com>
# Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> # Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com> # Copyright (C) 2020 Henrik tom Wörden <h.tomwoerden@indiscale.com>
# Copyright (C) 2020 IndiScale <info@indiscale.com> # Copyright (C) 2020 IndiScale <info@indiscale.com>
...@@ -22,7 +21,6 @@ ...@@ -22,7 +21,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
# ** end header
# Although some sanity checks are performed, this script still allows lots of SQL injection # Although some sanity checks are performed, this script still allows lots of SQL injection
# possibilities. # possibilities.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment