From: Michael Wagner Date: Wed, 3 Jun 2020 11:03:11 +0000 (+0200) Subject: phpide-d10 X-Git-Tag: verleihnix_0.1-1~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cbabc7139cc6dce50483157c45f5aef80966c07c;p=projects.git phpide-d10 --- diff --git a/debian/verleihnix.changelog b/debian/verleihnix.changelog new file mode 100644 index 0000000..ef92e38 --- /dev/null +++ b/debian/verleihnix.changelog @@ -0,0 +1,4 @@ +projects (0.1-BUILD) unstable; urgency=medium + * initial version + -- Michael Wagner Sat, 06 Jun 2020 20:03:04 +0100 + diff --git a/debian/verleihnix.control b/debian/verleihnix.control new file mode 100644 index 0000000..0508f01 --- /dev/null +++ b/debian/verleihnix.control @@ -0,0 +1,12 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git, mbuild + +Package: verleihnix +Architecture: all +Description: Verleih Management + . + Verleih Management + diff --git a/debian/verleihnix.cp b/debian/verleihnix.cp new file mode 100755 index 0000000..5ca08da --- /dev/null +++ b/debian/verleihnix.cp @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/share/php/verleihnix +cp -a verleihnix/* $1/usr/share/php/verleihnix + +mkdir -p $1/etc/apache2/sites-available/ +cp verleihnix/etc/verleihnix.conf $1/etc/apache2/sites-available/ + diff --git a/debian/verleihnix.postinst b/debian/verleihnix.postinst new file mode 100755 index 0000000..4f72e56 --- /dev/null +++ b/debian/verleihnix.postinst @@ -0,0 +1,42 @@ +#!/bin/bash +set -e + +# check MariaDB or MySQL +maria=$(mysql -V |grep MariaDB) || true + +# check, whether mkrimi user exists +if ! mysql -umkrimi -pmkrimi mkrimi -e";" +then + echo "Installation of mkrimi user ..." + # unix_socket authentification for MariaDB 10 + if [ -n "$maria" ] + then + mysql </dev/null 2>&1 +then + echo "Installation of mkrimi schema ..." + mysql -umkrimi -pmkrimi mkrimi