fix(upgrade): fix start script existence check (v4.4)

This commit is contained in:
Thales Macedo Garitezi 2022-12-23 16:38:36 -03:00
parent 43e77391db
commit 1d59e18cca
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) ->