Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ ⎇ branch:  cross package maker


Check-in [f464393ebb]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merge pull request #824 from dlanderson/patch-2 Remove errant space in debian postinst_upgrade.sh
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f464393ebb687c212511c9dd5ac4a1c9e059ddf5
User & Date: jls@semicomplete.com 2014-12-10 22:37:14
Context
2014-12-11
21:53
Extend the NPM class with FPM::Util to give it safesystemout. Fixes #806 and #800 check-in: 1dea2f942a user: jls@semicomplete.com tags: trunk
2014-12-10
22:37
Merge pull request #824 from dlanderson/patch-2 Remove errant space in debian postinst_upgrade.sh check-in: f464393ebb user: jls@semicomplete.com tags: trunk
21:37
Remove errant space in debian postinst_upgrade.sh This space was preventing postinst scripts to run on initial install of the .deb package check-in: d94f8d5b37 user: dave@dubkat.com tags: trunk
2014-11-21
17:43
Add note about Code of Conduct Huge thanks to everyone involved in contributor-covenant.org for providing this framework. <3 check-in: d9ca0cb590 user: jls@semicomplete.com tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to templates/deb/postinst_upgrade.sh.erb.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
after_upgrade() {
<% if script?(:after_upgrade) -%>
<%=  script(:after_upgrade) %>
<% end -%>
}

after_install() {
<% if script?(:after_install) -%>
<%=  script(:after_install) %>
<% end -%>
}

if [ "${1}" = "configure " -a -z "${2}" ]
then
    # "after install" here
    after_install
elif [ "${1}" = "configure" -a -n "${2}" ]
then
    upgradeFromVersion="${2}"
    # "after upgrade" here












|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
after_upgrade() {
<% if script?(:after_upgrade) -%>
<%=  script(:after_upgrade) %>
<% end -%>
}

after_install() {
<% if script?(:after_install) -%>
<%=  script(:after_install) %>
<% end -%>
}

if [ "${1}" = "configure" -a -z "${2}" ]
then
    # "after install" here
    after_install
elif [ "${1}" = "configure" -a -n "${2}" ]
then
    upgradeFromVersion="${2}"
    # "after upgrade" here