#!/bin/bash # analog of %pre/%pretrans RPM scriptlet # For details see: # 1. https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#summary-of-ways-maintainer-scripts-are-called # 2. https://www.debian.org/doc/debian-policy/ap-flowcharts.html # Arguments in short: # "$1" == "install" # "$1" == "upgrade" # "lvemanager DEBIAN PREINST STARTED" if [[ "$1" == "install" ]] && [[ ! -f /usr/share/l.v.e-manager/install-lvemanager-plugin.py ]]; then mkdir -p /var/lve &>/dev/null chmod 0755 /var/lve touch /var/lve/lvemanager_is_not_installed fi touch /var/lve/lvemanager_install_started # "lvemanager DEBIAN PREINST FINISHED" exit 0