Merge pull request #9610 from thalesmg/fix-upgrade-unpacked-v43

fix(upgrade): fix start script existence check (v4.3)
This commit is contained in:
Thales Macedo Garitezi 2022-12-27 09:32:32 -03:00 committed by GitHub
commit cb8026f9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ parse_arguments([VersionStr|Rest], Acc) ->
parse_arguments(Rest, [{version, Version}] ++ Acc).
unpack_release(RelName, TargetNode, Version) ->
StartScriptExists = filelib:is_dir(filename:join(["releases", Version, "start.boot"])),
StartScriptExists = filelib:is_regular(filename:join(["releases", Version, "start.boot"])),
WhichReleases = which_releases(TargetNode),
case proplists:get_value(Version, WhichReleases) of
Res when Res =:= undefined; (Res =:= unpacked andalso not StartScriptExists) ->