#!/bin/sh
### Copyright 1999-2017. Parallels IP Holdings GmbH. All Rights Reserved.

if [ -n "$PLESK_INSTALLER_DEBUG" -o -n "$PLESK_INSTALLER_VERBOSE" ]; then
	set -x;
fi

prog="`basename $0`"
tmp_d="/usr/local/psa/var"
mu_flag="$tmp_d/${prog%.sh}.flag"

[ ! -f "$mu_flag" ] || exit 0

#####

perl -pi -e 's,^error_reporting(.*)$,error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED,' /usr/local/psa/admin/conf/php.ini

#####

touch "$mu_flag"
