After removing the changes to /etc/default/ngcp-panel in a previous commit, the .preinst script's only purpose is to create /tmp/ngcp, which can be better done with tmpfiles.d, and so this script can be removed. (The original idea and plan is from Alex Lutay, cheers to him). Change-Id: I1882eb01339f9389c9e789bc4ff3e4c168a2384cchanges/22/19822/2
parent
e001a97650
commit
f2275b5e00
@ -1,7 +1,8 @@
|
||||
lib/NGCP/Panel/I18N/* usr/share/perl5/NGCP/Panel/I18N
|
||||
logging.conf etc/ngcp-panel/
|
||||
ngcp_panel.conf etc/ngcp-panel/
|
||||
ngcp_panel.psgi usr/share/ngcp-panel/
|
||||
ngcp_panel.psgi usr/share/ngcp-panel/
|
||||
script/* usr/share/ngcp-panel/script
|
||||
script/ngcp_panel_fastcgi.pl usr/share/ngcp-panel/
|
||||
share/* usr/share/ngcp-panel/
|
||||
debian/ngcp-panel.tmpfiles.d.conf usr/lib/tmpfiles.d/ngcp-panel.conf
|
||||
|
||||
@ -1,41 +0,0 @@
|
||||
#!/bin/sh
|
||||
# preinst script for #PACKAGE#
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <new-preinst> `install'
|
||||
# * <new-preinst> `install' <old-version>
|
||||
# * <new-preinst> `upgrade' <old-version>
|
||||
# * <old-preinst> `abort-upgrade' <new-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
install|upgrade)
|
||||
# fix tmp perms
|
||||
if [ -d /tmp/ngcp ]; then
|
||||
echo "fixing /tmp/ngcp dir perms"
|
||||
chown -R www-data:www-data /tmp/ngcp
|
||||
chmod 0755 /tmp/ngcp
|
||||
fi
|
||||
;;
|
||||
|
||||
abort-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "preinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
@ -0,0 +1 @@
|
||||
d /tmp/ngcp 0755 www-data www-data
|
||||
Loading…
Reference in new issue