HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //var/packages/Contacts/scripts/postinst
#!/bin/bash
# Copyright (c) 2000-2018 Synology Inc. All rights reserved.

source "$(dirname $0)"/common

PrepareLockDir

${DB_TOOL} --init-config-if-needed
${DB_TOOL} --setup-db
${DB_TOOL} --upgrade-all-db

if [ -f ${PREUPGRADE_TMP_FILE} ] ; then
	# it's upgrading from the other version
	rm -f ${PREUPGRADE_TMP_FILE}
else
	# it's a brand new install
	${DB_TOOL} --grant-default-privilege
	${DB_TOOL} --auto-bind
fi

exit 0