~ubuntu-branches/ubuntu/precise/ejabberd/precise-proposed

« back to all changes in this revision

Viewing changes to src/ejabberd_update.erl

  • Committer: Bazaar Package Importer
  • Author(s): Konstantin Khomoutov, Konstantin Khomoutov
  • Date: 2010-07-26 20:36:14 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100726203614-s3asj0k5ym3bxhdw
Tags: 2.1.4-1
[ Konstantin Khomoutov ]
* Do not prevent ejabberd_debug from being installed and used
  as this was implemented upstream as the default behavior.
* Add build dependency on erlang-parsetools.
* Add 'sharedscripts' option to logrotate config.
* Update VCS references in control file to point to git.deb.at.
* Add group sticky bit to permissions on the log directory --
  this should make log files owned by the group "adm".
* Explicitly set umask to 027 before starting erl.
* Add patch with fix for EJAB-953 (closes: #590389).
* Fix call to setup_ejabberd in postinst.
* Fix owner/permissions for log files when upgrading.
* Minor fixes and clarifications in ejabberdctl.8 manual page.
* Refresh reopen-log.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
update_info(Dir, Files) ->
85
85
    Beams = lists:sort(get_beams(Files)),
86
86
    UpdatedBeams = get_updated_beams(Beams),
87
 
    ?INFO_MSG("beam files: ~p~n", [UpdatedBeams]),
 
87
    ?DEBUG("beam files: ~p~n", [UpdatedBeams]),
88
88
    {Script, LowLevelScript, Check} = build_script(Dir, UpdatedBeams),
89
89
    {ok, Dir, UpdatedBeams, Script, LowLevelScript, Check}.
90
90
 
124
124
%% @spec(Dir::string(), UpdatedBeams::[atom()]) -> {Script,LowLevelScript,Check}
125
125
build_script(Dir, UpdatedBeams) ->
126
126
    Script = make_script(UpdatedBeams),
127
 
    ?INFO_MSG("script: ~p~n", [Script]),
128
127
    LowLevelScript = make_low_level_script(UpdatedBeams, Script),
129
 
    ?INFO_MSG("low level script: ~p~n", [LowLevelScript]),
130
128
    Check =
131
129
        release_handler_1:check_script(
132
130
          LowLevelScript,
133
131
          [{ejabberd, "", filename:join(Dir, "..")}]),
134
 
    ?INFO_MSG("check: ~p~n", [Check]),
 
132
    case Check of
 
133
        ok -> 
 
134
            ?DEBUG("script: ~p~n", [Script]),
 
135
            ?DEBUG("low level script: ~p~n", [LowLevelScript]),
 
136
            ?DEBUG("check: ~p~n", [Check]);
 
137
        _ ->
 
138
            ?ERROR_MSG("script: ~p~n", [Script]),
 
139
            ?ERROR_MSG("low level script: ~p~n", [LowLevelScript]),
 
140
            ?ERROR_MSG("check: ~p~n", [Check])
 
141
    end,
135
142
    {Script, LowLevelScript, Check}.
136
143
 
137
144
%% Copied from Erlang/OTP file: lib/sasl/src/systools.hrl