add a preinstall script
correctly require postgresql Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
20bd32b4ab
commit
38db367f3d
|
@ -1,11 +1,11 @@
|
|||
Package: mattermost
|
||||
Source: mattermost
|
||||
Version: 7.3.0
|
||||
Version: 7.3.0.v2
|
||||
Architecture: amd64
|
||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||
Installed-Size: 5883
|
||||
Section: network
|
||||
Requires: postgresql
|
||||
Depends: postgresql
|
||||
Priority: optional
|
||||
Homepage: https://github.com/mattermost/mattermost-server
|
||||
Description: mattermost
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
echo "got here in mattermost -- jcarr put this here"
|
||||
touch /tmp/mattermost.jcarr.install
|
||||
set -e
|
||||
# Automatically added by dh_installdeb/13.9.1
|
||||
# dpkg-maintscript-helper symlink_to_dir /usr/share/doc/vim vim-common 2:8.0.1451-1\~ vim -- "$@"
|
||||
# End automatically added section
|
|
@ -1,4 +1,5 @@
|
|||
DEB=mattermost_7.3.0_amd64.deb
|
||||
NAME=mattermost
|
||||
DEB=${NAME}_7.3.0.v2_amd64.deb
|
||||
|
||||
all: md5sum create info
|
||||
|
||||
|
@ -14,7 +15,7 @@ md5sum:
|
|||
cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums
|
||||
|
||||
create:
|
||||
cd DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control
|
||||
cd DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz ${NAME}.{post,pre}{inst,rm} md5sums control
|
||||
cd files && tar -cvJf ../data.tar.xz .
|
||||
ar rcs ${DEB} debian-binary control.tar.xz data.tar.xz
|
||||
|
||||
|
|
Loading…
Reference in New Issue