#!/bin/sh set -e if mysql_root_passwd is-mysql-live; then # Database work . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postinst.mysql dbc_generate_include=php:/etc/pmb/debian-db.php dbc_generate_include_owner="root:www-data" dbc_generate_include_perms='640' dbc_check_table="notices" dbc_check_upgrade="true" dbc_go pmb $@ # temp dirs permissions chown root:www-data /var/lib/pmb/backup chown root:www-data /var/lib/pmb/backup/backups chown root:www-data /var/lib/pmb/temp chmod 2775 /var/lib/pmb/backup chmod 2775 /var/lib/pmb/backup/backups chmod 2775 /var/lib/pmb/temp # Reloading apache if which invoke-rc.d >/dev/null 2>&1; then invoke-rc.d apache2 reload else /etc/init.d/apache2 reload fi [ -f /etc/pmb/debian-db.php ] && touch /var/lib/pmb/PMB_POSTCONFIG_OK fi #DEBHELPER# exit 0