Does not always untar anymore

This commit is contained in:
Tobias Herre 2023-11-01 17:02:00 +01:00
parent fb7878aa8f
commit 3b1c73b73d
1 changed files with 10 additions and 11 deletions

View File

@ -39,10 +39,10 @@ vars:
"dlsrc" string => "https://github.com/roundcube/roundcubemail/releases/download/$(cfg[version])/$(tgzname)";
reports:
dlbyversion::
"dl by version";
!dlbyversion::
"not dl by version";
# dlbyversion::
# "dl by version";
# !dlbyversion::
# "not dl by version";
files:
"$(dldir)/."
@ -52,8 +52,8 @@ files:
methods:
"any" usebundle => download_file("$(dltype)","$(dlsrc)","$(dlfile)","roundcube_tgz_file",'{}'),
handle => "roundcube_tgz_copied",
depends_on => {"roundcube_agent_dir_created"},
classes => if_repaired ("roundcube_untar");
depends_on => {"roundcube_agent_dir_created"};
# classes => if_repaired ("roundcube_untar");
# "$(dlfile)"
@ -77,21 +77,20 @@ files:
"$(cfg[backup_dir])/config.inc.php"
copy_from => local_dcp("$(install_sub_dir)/config/config.inc.php"),
depends_on => {"roundcube_untarred"};
methods:
"any" usebundle => mysql_table_exists(@(cfg),"users");
config_exists|roundcube_configr_repaired::
config_exists|roundcube_config_repaired::
"any" usebundle => rm_rf ("$(install_sub_dir)/installer");
commands:
roundcube_untar::
roundcube_untar|roundcube_tgz_file_repaired::
"/usr/bin/tar"
args => "xzf $(dlfile) -C $(cfg[install_dir]) && chown -R $(cfg[www_user]):$(cfg[www_group]) $(cfg[install_dir])",
depends_on => {"roundcube_tgz_copied"},
contain => wmde_cmd_useshell,
handle => "roundcube_untarred";
!roundcube_untar::
(!roundcube_untar)&(!roundcube_tgz_file_repaired)::
"/usr/bin/true"
inform => "false",
depends_on => {"roundcube_tgz_copied"},