#!/bin/sh set -e case $1 in configure) # 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 # Settings for PMB UPLOAD MAX Size mkdir -p /etc/lliurex-tokens/ if [ ! -e /etc/lliurex-tokens/pmb4.1_phpsize ]; then # Setting the lliurex-token for pmb echo " [ PMB 4.1 ] : PHP Upload size fixed to 20MB " echo "PHP Size fixed to 20MB " > /etc/lliurex-tokens/pmb4.1_phpsize date >> /etc/lliurex-tokens/pmb4.1_phpsize # Calling utility bash /usr/share/pmb/www/lliurex/utilidades/phpiniconf.sh --pmb || true else echo " [ PMB 4.1 ] : PHP Upload has been already set...nothing to do " fi if [ ! -e /etc/lliurex-tokens/pmb4.1_javascript ]; then # Setting the lliurex-token for pmb echo " [ PMB 4.1 ] : Disable Javascript Common " echo "Disabled Javascript Common " > /etc/lliurex-tokens/pmb4.1_javascript date >> /etc/lliurex-tokens/pmb4.1_javascript # Calling utility a2disconf javascript-common || true else echo " [ PMB 4.1 ] : Javascript Common has been already disabled...nothing to do " fi # Reloading apache service apache2 reload ;; abort-upgrade|abort-remove|abort-deconfigure) echo "postinst called with argument \`$1'" >&2 exit 1 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0