#!/usr/bin/bash

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

/usr/bin/ionice -c 3 /usr/sbin/cagefsctl --force-update
/usr/share/cagefs/cpanel/cpanel_hooks_manage.py -i
/usr/share/cagefs-plugins/install-cagefs-plugin.py --manage-multiphp-cron-file
/usr/share/cagefs-plugins/install-cagefs-plugin.py --add-usr-local-easy-mount
/usr/share/cagefs-plugins/install-cagefs-plugin.py --setup-ea-php-sessions
if [ -e /usr/share/cagefs/need.remount ]; then
    /usr/sbin/cagefsctl --remount-all
fi
exit 0
