use php composer w/o cache

This commit is contained in:
Tobias Herre 2023-10-29 02:11:35 +02:00
parent 058a5a9ebb
commit c72f985f64
1 changed files with 10 additions and 1 deletions

View File

@ -11,6 +11,11 @@ classes:
"vimbadmin_restore_db" expression => fileexists("$(cfg[restore_db_file])"); "vimbadmin_restore_db" expression => fileexists("$(cfg[restore_db_file])");
vars: vars:
"pkgs" slist => {
"git"
};
"vsettings[resources.doctrine2.connection.options.driver]" string => "'$(cfg[db_driver])'"; "vsettings[resources.doctrine2.connection.options.driver]" string => "'$(cfg[db_driver])'";
"vsettings[resources.doctrine2.connection.options.dbname]" string => "'$(cfg[db_name])'"; "vsettings[resources.doctrine2.connection.options.dbname]" string => "'$(cfg[db_name])'";
"vsettings[resources.doctrine2.connection.options.user]" string => "'$(cfg[db_user])'"; "vsettings[resources.doctrine2.connection.options.user]" string => "'$(cfg[db_user])'";
@ -112,8 +117,11 @@ commands:
"/bin/sh" "/bin/sh"
# args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) -q -n create-project --prefer-dist --no-dev opensolutions/vimbadmin'", # args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) -q -n create-project --prefer-dist --no-dev opensolutions/vimbadmin'",
args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) install -q --prefer-dist --no-dev", args => "-c 'cd $(cfg[install_dir]) && $(php_composer.exe) update -q --no-cache && $(php_composer.exe) install --no-cache -q --prefer-dist --no-dev",
handle => "vimbadmin_composed", handle => "vimbadmin_composed",
depends_on => {
"vimbadmin_pkgs_installed"
},
contain => vimbadmin_cmd; contain => vimbadmin_cmd;
#"/bin/sh" #"/bin/sh"
@ -127,6 +135,7 @@ commands:
methods: methods:
"any" usebundle => wmde_install_packages(@(pkgs),"vimbadmin");
"any" usebundle => php_composer; "any" usebundle => php_composer;
"any" usebundle => mysql_table_exists(@(cfg),"admin"); "any" usebundle => mysql_table_exists(@(cfg),"admin");