[DRE-maint] Bug#786476: redmine: minor error during postinst

xia boles bluedreams512 at hotmail.com
Tue Jan 29 23:50:01 GMT 2019


On Fri, 22 May 2015 15:21:17 +1000 Vincent McIntyre <vincent.mcintyre at csiro.au> wrote:
> Package: redmine
> Version: 2.5.1-2~bpo70+6
> Severity: normal
> Tags: patch
>
> During installation the postinst throws an error.
>
>   Setting up redmine (2.5.1-2~bpo70+6) ...
>
>   Creating config file /etc/redmine/default/session.yml with new version
>   A new secret session key has been generated in /etc/redmine/default/session.yml
>   Redmine instance "default" database must be configured manually.
>   Clearing the cache directory for redmine instance "default".
>   This may take a while.
>   /var/lib/dpkg/info/redmine.postinst: 297: [: -ne: unexpected operator
>
>
> This should fix it:
>
> --- postinst.orig       2015-02-23 03:07:15.000000000 +1100
> +++ postinst    2015-05-22 15:09:53.178357302 +1000
> @@ -293,6 +293,7 @@
>                         fi
>                         echo "Clearing the cache directory for redmine instance \"${lInstance}\".
>  This may take a while."
> +                       fCode=0
>                         rake -s tmp:cache:clear RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" VERBOSE=$RAKE_VERBOSE || fCode=$?
>                         if [ $fCode -ne 0 ]; then
>                                 echo "Error when clearing cache. You might need to clear the cache directory /var/cache/redmine/${lInstance}/ manually."
>
> Kind regards
> Vince
>
> -- System Information:
> Debian Release: 7.8
>   APT prefers oldstable
>   APT policy: (990, 'oldstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> --
>
>
Have you tried updating to Debian 8?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20190129/7b4d6d4e/attachment.html>


More information about the Pkg-ruby-extras-maintainers mailing list