sudo apt-get update && sudo apt-get upgrade
- Create the Odoo system user:
sudo adduser --system --home=/opt/odoo --group odoo
| /** | |
| * Handler that will be called during the execution of a PostLogin flow. | |
| * | |
| * @param {Event} event - Details about the user and the context in which they are logging in. | |
| * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. | |
| */ | |
| exports.onExecutePostLogin = async (event, api) => { | |
| const axios = require("axios"); | |
| const ManagementClient = require("auth0").ManagementClient; |
Empezamos por un backup de la tarjeta SD, luego lo copiaremos a otra tarjeta SD. En el proceso de copia se puede usar un backup que hayamos hecho o una iso descargada de Internet.
Dividimos el proceso en pasos para facilitar su comprensión y replicación.
Ubuntu 18.04 LTS.
| git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master' |
| SELECT pg_catalog.set_config('search_path', 'public', false); |
| CREATE OR REPLACE FUNCTION drop_objects() | |
| RETURNS VOID AS $$ | |
| DECLARE | |
| rd_object RECORD; | |
| v_idx_statement VARCHAR(500); | |
| BEGIN | |
| ---1. Dropping all stored functions |
| DROP SCHEMA public CASCADE; | |
| CREATE SCHEMA public; |
| #!/usr/bin/env python | |
| # Original code https://andy-carter.com/blog/automating-git-commit-messages-with-git-hooks | |
| # Create hooks directory mkdir -p ~/.git/hooks | |
| # Config global hook path git config --global core.hooksPath ~/.git/hooks/ | |
| # save as prepare-commit-msg | |
| __author__ = "Alex Arce" | |
| __email__ = "[email protected]" | |
| __license__ = "GPL" | |
| __version__ = "1.0" | |
| __credits__ = "Frank Hofmann " |
| systemctl stop mysql.service | |
| /usr/bin/mysql_safe --skip-grant-tables | |
| mysql -u root | |
| use mysql; | |
| update user set authentication_string=PASSWORD("**NEW-PASSWORD**") where User='root'; | |
| flush privileges; | |
| quit; | |
| systemctl start mysql.service | |
| # Test new Password | |
| mysql -u root -h localhost -p |