add a preinstall script

correctly require postgresql

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2022-10-07 22:30:59 -05:00
parent 20bd32b4ab
commit 38db367f3d
3 changed files with 12 additions and 4 deletions

View File

@ -1,11 +1,11 @@
Package: mattermost Package: mattermost
Source: mattermost Source: mattermost
Version: 7.3.0 Version: 7.3.0.v2
Architecture: amd64 Architecture: amd64
Maintainer: Jeff Carr <jcarr@wit.com> Maintainer: Jeff Carr <jcarr@wit.com>
Installed-Size: 5883 Installed-Size: 5883
Section: network Section: network
Requires: postgresql Depends: postgresql
Priority: optional Priority: optional
Homepage: https://github.com/mattermost/mattermost-server Homepage: https://github.com/mattermost/mattermost-server
Description: mattermost Description: mattermost

View File

@ -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

View File

@ -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 all: md5sum create info
@ -14,7 +15,7 @@ md5sum:
cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums cd files/ && find -type f -exec md5sum '{}' \; >../DEBIAN/md5sums
create: 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 . cd files && tar -cvJf ../data.tar.xz .
ar rcs ${DEB} debian-binary control.tar.xz data.tar.xz ar rcs ${DEB} debian-binary control.tar.xz data.tar.xz