Skip to content
Snippets Groups Projects
Commit 3857be71 authored by Matthieu Faure's avatar Matthieu Faure
Browse files

add cwd + environment to exec of SQL script

parent 2557ed74
No related branches found
No related tags found
1 merge request!5Resolve "Create Comptoir Puppet module"
Pipeline #3932 passed
......@@ -33,16 +33,18 @@ class comptoir (
# TODO 2. improve puppet code to avoid Exec,
# TODO 3. ...maybe by creating an idempotent SQL, see https://stackoverflow.com/questions/33631186/how-do-i-make-alter-column-idempotent
-> Exec { 'Create SQL tables & procedures':
command => "${comptoir_dir}/bin/COMPTOIR_create_DB_tables_and_procedures.sh -d ${comptoir_dir}",
user => $comptoir_user,
command => "${comptoir_dir}/bin/COMPTOIR_create_DB_tables_and_procedures.sh -d ${comptoir_dir}",
cwd => $comptoir_dir,
user => $comptoir_user,
environment => [ 'HOME=/home/comptoir' ],
}
# Install app with Composer
-> Exec { 'Install app with Composer':
command => '/usr/local/bin/composer --no-progress install',
cwd => $comptoir_dir,
environment => [ 'HOME=/home/comptoir' ],
user => $comptoir_user,
environment => [ 'HOME=/home/comptoir' ],
}
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment